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

Khoa Nguyen
Khoa Nguyen
4,735 Points

why do I get an error Thanks

I am not sure why I get an error

RandomTest.java
Random randomGenerator = new Random();
int randomNumber = randomGenerator.nextInt(10);
String intAsString = randomNUmber + "";

I figured out my issue, it was a typo: randomNUmber instead of randomNumber

You're welcome :)

Sorry I had to.