Android Build a Simple Android App with Java Basic Android Programming Generating a Random Number

Lovejoy Mushunje
Lovejoy Mushunje
6,026 Points

Cannot resolve nextInt()

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.

Lovejoy Mushunje
Lovejoy Mushunje
6,026 Points

Figured it out I was not supposed to use the keyword new