0
My program is wrong and i don't input the next variable input. Why?
Input variable https://code.sololearn.com/cH83Uc7xct5F/?ref=app
2 Respuestas
+ 4
Use only one Scanner(System.in) object:
Scanner sc = new Scanner(System.in);
int i = sc.nextInt();
int j = sc.nextInt();
0
Don't create multiple Scanner objects using the same input stream (System.in).