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 (retired 2014) Getting Started with Android Java Variables Explained

Setting your favorite color string challenge

I'm trying to figure out the correct order to set the variable, but need some hints. Can you help me out?

2 Answers

Yes, first you must define what type of variable it is, so String, and then what will you name the variable.... favoriteColor then set it equal to "blue"; so String favoriteColor = "blue";

Thanks a lot! Can't wait to be adept at coding!

Yeah! Stick with it I know it can be frustrating at first but it is so much fun the more you do it!!