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!
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

Aaron 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.
1 Answer

samiff
31,206 PointsHey Aaron Peasley, looks like you're doing well on this challenge, but maybe you forgot the variable type of String? The following works fine for me:
String intAsString = Integer.toString(randomNumber);
Let me know if you still can't get it to work for ya.