Question: How would I get a user's input for this? import java.util.Random; class Main { public static void main(String[] args) { Random rand = new Random();
How would I get a user's input for this?
import java.util.Random;
class Main {
public static void main(String[] args) {
Random rand = new Random();
int newNumber = rand.nextInt(101);
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
