Welcome to the Treehouse Community
Looking to learn something new?
How do I Create a String variable named intAsString. Convert the randomNumber integer to a String value and store it in
How do I create a String variable?
Random randomGenerator = new Random(); int randomNumber = randomGenerator.nextInt(10); String = "
Jennifer NordellTreehouse Teacher
You are so close! You seem hung up on the converting from int to string and storing the result in a variable. Here's the last line you need. The first two are perfect as they are.
String intAsString = String.valueOf(randomNumber);