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 trialAaron Peasley
1,411 PointsObjects 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
29,275 PointsHi 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.
Aaron Peasley
1,411 PointsChase Lee
29,275 PointsI don't know which task you are on but this is for task one,"Random randomGenerator = new Random();"
Aaron Peasley
1,411 PointsNo, I was trying to do task 4, and I still can't do it
Chase Lee
29,275 PointsHey, 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.
Aaron Peasley
1,411 Points(FacePalm) Oh jeez, of course!!
Thanks so much
Chase Lee
29,275 PointsNo problem.