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
habib kazemi2,041 Points
problem with code chalenge
i type string favorite Color = "blue"; but it doesn't work.
I did the same and it works.
Maybe some typo error.
doesn't the variable name need to be favoriteColor?
If you type favourite (space) Color, java will think you are referring to two differernt variable names i.e. favourite and Color
Also in java String starts with a capital letter. So it's incorrect to say string
Java, thus Android is a strictly typed language, meaning you should be very careful with the case of the letter. For e.g. String and string are two different things in java
This is the correct answer
String favouriteColor = "blue";
Hope this helps
spelling matters , turns out i was typing favoUrite... the U factor was messing up everything