26th Aug 2024, 5:20 PM
Rohit Nishad
Rohit Nishad - avatar
5 ответов
0
You should change next() to nextInt(), but the program will crash anyway if you enter a wrong password. The playground doesn't support repeating inputs in a loop.
26th Aug 2024, 7:08 PM
Jan
Jan - avatar
+ 1
"so" is an integer, but next() returns a string.
26th Aug 2024, 5:35 PM
Lisa
Lisa - avatar
0
you can test such a loop using multiline input (on SL) : 1000 2000 8819
26th Aug 2024, 9:58 PM
zemiak
0
It works normal in Jvdroid.
27th Aug 2024, 5:40 AM
Jan
Jan - avatar
0
Thanks to all to solve my problem
27th Aug 2024, 6:25 AM
Rohit Nishad
Rohit Nishad - avatar