0

How get input from user two time

can we use multiple Scanner like this https://code.sololearn.com/c6v5ZILM3C0t/?ref=app

8th Feb 2020, 4:49 PM
Sheraz Tariq
Sheraz Tariq - avatar
8 ответов
+ 3
Your code works fine as it is. On SoloLearn you have to give all inputs at once, just start in a new line with the second input, like this : again second
8th Feb 2020, 4:52 PM
Tibor Santa
Tibor Santa - avatar
+ 2
If we can do with single object of Scanner class then why multiple Scanner. You have to just create single object of Scanner class.
8th Feb 2020, 4:50 PM
A͢J
A͢J - avatar
+ 2
Sheraz Tariq Sololearn doesn't support multiple input one by one. You have to take all input on the same time in seperate lines.
8th Feb 2020, 4:55 PM
A͢J
A͢J - avatar
+ 2
Thanks
8th Feb 2020, 4:56 PM
Sheraz Tariq
Sheraz Tariq - avatar
0
how?
8th Feb 2020, 4:51 PM
Sheraz Tariq
Sheraz Tariq - avatar
0
i mean two time input
8th Feb 2020, 4:51 PM
Sheraz Tariq
Sheraz Tariq - avatar
0
if we input "again" then we got Exception why?
8th Feb 2020, 4:54 PM
Sheraz Tariq
Sheraz Tariq - avatar
0
Ok
8th Feb 2020, 4:55 PM
Sheraz Tariq
Sheraz Tariq - avatar