0
Java
Error in so=read.nextInt(); https://sololearn.com/compiler-playground/cGH80NJoHtIg/?ref=app
5 Answers
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.
+ 1
"so" is an integer, but next() returns a string.
0
you can test such a loop using multiline input (on SL) :
1000
2000
8819
0
It works normal in Jvdroid.
0
Thanks to all to solve my problem