0
Why am I getting an error as exception in main thread what's wrong in my code?
5 Respuestas
+ 2
It is may be because you are creating multiple instances of the Scanner class. Put the Scanner instantiation outside the do while and it should work fine.
+ 1
I solved it
0
It's a quiz given in do while loop lesson of solo learn.. it says u need to put scanner class inside the loop to take multiple inputs
0
I have given the problem inside the code
0
I m not understanding