0

How get input from user two time

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

2/8/2020 4:49:46 PM

Sheraz Tariq

8 Answers

New Answer

+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

+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.

+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.

+2

0

0

i mean two time input

0

if we input "again" then we got Exception why?

0