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 trial


what am i doing wrong please help ..

so it tells me in the android tutorial to do my favorite color as a challenge code correct? ok so it starts off as favoritecolor string equals ""; and it says you might have to switch around some words or even add some and so i do and is it not? String favoritecolor = "blue" ;

2 Answers

Stone Preston
Stone Preston
42,016 Points

maybe try "Blue" instead of "blue"? Cant really tell you without the specific directions of the challenge. Can you provide a link?

what i did wrong was the code said string favoritecolor "blue"; and it was suppose to be String favoriteColor "blue"; with color containing a capital C for the code to be correct thx for the help though