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

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