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 trialsachin Madishetty
453 Pointsi cannot under stand question
what need to be written
favoriteColor String equals "white";
String favoritecolor="white";
Omar Melendrez
Courses Plus Student 63 PointsOmar Melendrez
Courses Plus Student 63 PointsString favoriteColor = "white" ;
First the data type definition (specify what tipe of data the variable will be)
then the variable name. Remember only letters and numbers, cannot start with a number, and can only have underscore _ like in favorite_color. Also very important in Java, variable names are case sensitive. favoriteColor is not the same as favoritecolor.
then the equal sign = as you want to assign a value to that variable
and then the value, that in this case is a string so you need the double "
finally close the command line with the semi-colon ;