Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Simple Android App (retired 2014) Getting Started with Android Java Variables Explained

I'm having trouble with this exercise. when I type the letters appear in different places and I cant continue

I'm pretty sure that I have typed everything the way it is suppose to be but I cant continue. when I type the letters appear in different places and I cant see the preview either.

Justin Horner
Justin Horner
Treehouse Guest Teacher

Hello Alex,

I completed the challenge successfully to test your situation. Everything worked as expected when I tried it. Would you mind explaining further? Also, it wouldn't hurt to show the code that you have written.


Sure I'll do it right now n I'll just copy and paste in a moment

and thank you for helping me out

What I typed was

string favoriteColor = "Blue";

1 Answer

Justin Horner
Justin Horner
Treehouse Guest Teacher

Thank you for providing your code!

The type should begin with a capital letter. So in the case you should type "String" instead of "string". Give that a try first.

I hope this helps

I got it thank You!!!! by the way.... when you type, do the letters appear in different places? is that when I type the letters appear a few spaces behind. like if I'm going to type -Blue- in the " " I would end up typing -Blue- before -favoriteColor- or in between? I don't know if it's only me or if others also go through it ?

Justin Horner
Justin Horner
Treehouse Guest Teacher

You're welcome! I can't say I've experienced that behavior before.

One small tip: If you are using a laptop and mouse, you may want to consider disabling the track pad while the mouse in use. If you don't, it's easy for your arms to touch the track pad just enough to move your cursor while you're typing and it is super annoying.

I guess I'll try that thank you!