It should be:
while (number < maxNumber){
number++;
System.out.print(number);
}
Note the misplaced semicolon.
0
solved While loop won’t work in java [closed]
It should be:
while (number < maxNumber){
number++;
System.out.print(number);
}
Note the misplaced semicolon.
0
solved While loop won’t work in java [closed]