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 trialNauman Akhtar
42 PointsSet the favoriteColor variable to your favorite color. You might need to move some things around and add or change some
Set the favoriteColor variable to your favorite color. You might need to move some things around and add or change some text.
String yourfavoritecolor ="";
2 Answers
Matin Shoghi
10,978 PointsThe variable needs to be called favoriteColor. And then include your favorite color in the quotation marks.
Hope this helps :)
ISAIAH S
1,409 PointsThere is a track in java here.
cecil merrell
6,873 Pointscecil merrell
6,873 PointsThis Question has already been answered and explained here.
https://teamtreehouse.com/forum/set-the-favoritecolor-variable-to-your-favorite-color-you-might-need-to-move-some-things-around-and-add-or-change-some-2