Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChristina Lazzara
7,142 PointsWhy isnt my .parseColor(); working
I have gone over and over trying to figure out why in : int colorAsInt = Color.parseColor(Color); that both Color is in red words when i did things word for word?
1 Answer
Ricky Catron
13,023 PointsYou are trying to pass the class Color to its own method. I believe for parseColor you should be passing in a String hexadecimal representation of a string such as #FF0000 for red.
Goodluck! --Ricky