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

Android Build a Simple Android App (2014) Getting Started with Android Troubleshooting Java

i cannot under stand question

what need to be written

Color.java
favoriteColor String equals "white";
String favoritecolor="white";

String favoriteColor = "white" ;

  1. First the data type definition (specify what tipe of data the variable will be)

  2. 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.

  3. then the equal sign = as you want to assign a value to that variable

  4. and then the value, that in this case is a string so you need the double "

  5. finally close the command line with the semi-colon ;