+ 1
Hi everybody, why I can't use two times System.in here in Sololearn?
2 Antworten
+ 7
Just use one scanner to handle multiple inputs. Having multiple scanners on the same stream is a bad practice (and also often confusing), as it will corrupt your input stream and invalidate your Scanner object.
+ 2
https://www.sololearn.com/learn/Java/2220/?ref=app
this is a way to get input from
one Scanner class