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


I need some help please

its the favorite color string its confusing

6 Answers

OK - what's the problem?

its the favoriteColor string its confusing what do i have to do

OK. What track are you on, what task have you been set, and what's not working.

Some code examples would help too.


I have no idea what the favoriteColor string is; I'm just a student too.

If you can help me out with some context, like defining a code language, the question or problem you have been set, the answer that's not working etc - I/we may be able to assist.

its the android track with the favoriteColor string equals " " :


I'm not on that track and nor have I done it. I'm sure it's a great place to be. But I can't answer your question because I have no idea what you are talking about.

Let's have a look at what you're being asked to do and let's have a look at your proposed answer. Then we can muddle through and sort a solution.

Post the problem and we'll do our best to post the solution. I have no idea what favoriteColor is - I haven't taken that course.

Steve T: @OnlySteveH

Kevin Kenger
Kevin Kenger
32,834 Points

Hey Ruben,

The challenge just wants you to add your favorite color inside the quotes, and move the words around so they make sense in declaring a variable. When you don't pass the challenge, read the hints. It helps a lot!

So we start off with this, right?

favoriteColor String equals "";

This challenge is basically a word scramble, along with inputting your favorite color. So let's say your favorite color is blue. Let's add that in.

favoriteColor String equals "blue";

It also tells us that we might need to move a few words around in order to get the code to run, and that we might need to change a few words too. Let's do that.

String favoriteColor = "blue";

This looks about right to me. If you'll notice, I changed the words around, and also swapped out the word equals for =. That should get you past the code challenge and I hope it helped you to understand what they were asking for a little better!

its the favoriteColor string its confusing