+ 1
What's wrong?
4 Respostas
+ 9
U only need to create only 1 object of Scanner class & then use different/same methods of taking input multiple times .. to take multiple inputs
//see more explanation here
https://www.sololearn.com/Discuss/231618/?ref=app
+ 3
I think you can't open standard input twice, you should use only one scanner (pu or in)
+ 2
how to add two scanner variables?
+ 1
Scanner pu = ...;
Scanner in = pu;
This will work as pu and in will be the same object