Suppose I want to limit the input numbers to 20 in the following program, what should I do?
private static void Question2(){
Scanner scr = new Scanner(System.in);
int count = 0;
...
Type: Posts; User: Newbie0129
Suppose I want to limit the input numbers to 20 in the following program, what should I do?
private static void Question2(){
Scanner scr = new Scanner(System.in);
int count = 0;
...