15th Mar 2018, 8:11 AM
Габелая Егор
Габелая Егор - avatar
4 odpowiedzi
+ 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
15th Mar 2018, 11:06 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
I think you can't open standard input twice, you should use only one scanner (pu or in)
15th Mar 2018, 8:19 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
how to add two scanner variables?
15th Mar 2018, 8:20 AM
Габелая Егор
Габелая Егор - avatar
+ 1
Scanner pu = ...; Scanner in = pu; This will work as pu and in will be the same object
15th Mar 2018, 9:41 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar