This isn't working - what should I do?
Create a String variable named intAsString. Convert the randomNumber integer to a String value and store it in the intAsString variable. Hint: Add them together like in the video!
That is the question, but what should I do, because i tried writing: String intAtString = randomNumber + "";
Random randomGenerator = new Random(); int randomNumber = randomGenerator.nextInt(10); String intAtString = "" + randomNumber;
Jennifer NordellTreehouse Staff
Hi there! You're so close on this one. You've simply misspelled the variable name. They ask for you to make the variable
intAsString, but you made
intAtString. Note the "As" as opposed to "At".
Hope this helps!