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

Objects and Random Numbers Code Challenge

For the Code Challenge: Objects and Random Numbers, I am unable to get the challenge correct even after several tries and rearrangements.

Here is my code that I wrote intAsString = Integer.toString(randomNumber);

If anyone can tell me what I'm doing wrong, that would be great

Thanks.

7 Answers

Chase Lee
Chase Lee
29,275 Points

Hi Aaron Peasley ,

Could you post a link to the Code Challenge...I haven't done any Android stuff yet but I might as well try.

Chase Lee
Chase Lee
29,275 Points

I don't know which task you are on but this is for task one,"Random randomGenerator = new Random();"

No, I was trying to do task 4, and I still can't do it

Chase Lee
Chase Lee
29,275 Points

Hey, sorry it took me so long to reply...I was a little busy. So you need to put "String" before the entire thing. If it still dosen't make sense then I'll paste the code here.

(FacePalm) Oh jeez, of course!!

Thanks so much