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

m stuck in challange no.4

m stuck in the last stage of this code challange
Random randomGenerator=new Random();
  int randomNumber = randomGenerator.nextInt(10);
String intAsString="";
intAsString = 

1 Answer

Jason Wiram
Jason Wiram
Full Stack JavaScript Techdegree Student 41,151 Points

In the video, you use string concatenation to combine an empty string with an int to creating a resulting string that contains the int as a string.


int someInt = 42;
String intAsString="";
intAsString = intAsString + someInt;