Android Build a Simple Android App with Java Basic Android Programming Using the Random Class

Create a String variable named intAsString. Convert the randomNumber integer to a String value and store it in the intAs

my code is not working
Random randomGenerator=new Random();
int randomNumber=randomGenerator.nextInt(10);
String intAsString=randomNumber+" ";
Christian Tisby
Christian Tisby
9,329 Points

String intAsString = "" + randomNumber;