Build a Simple Android App with Java
Basic Android Programming
Generating a Random Number
When i type the following:
int randomNumber = new randomGenerator.nextInt(3);
Android studio gives a cannot resolve symbol for nextInt(3).
I cannot figure out why it is so.
Figured it out
I was not supposed to use the keyword new
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.
I forgot my password