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


Code Challenge: Objects and Random Numbers

I am a newbie and i am stuck on a line in this course.

in this course on line 32 I see you wright; answer = Integer.toString....... I wright exactly the same but is get this red x and it says;"Multiple markers at this line - answer cannot be resolved to a variable - The value of the local variable answer is

But when i wright; <b>String<b> answer = Integer.toString(randomNumber);

Then de red x is gone.

I hope someone can help me to answer my question.

1 Answer

I am sorry I found the error i typed awnser wrong