0
Any help on this program?
4 Réponses
+ 2
Avinesh Thanks, It finally works!
+ 1
~ swim ~ Chetali Shah Could you use an example to illustrate?
+ 1
Just remove the 2nd scanner reference.
Scanner name= new Scanner(System.in);
String nomen = name.nextLine();
int num = name.nextInt();
0
Use same scanner object to get all inputs.