How can i solve this problem with Java in SoloLearn compiler. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

How can i solve this problem with Java in SoloLearn compiler.

I have some problems with the Scanner to take the user input, i don't know for example, when i need to take the input for N of rounds in a bucle for test line to line or start the input before something, i have not the control from this function. I have every time an exception. Any has an idea or something information about this? https://code.sololearn.com/cy39D7i27df0/?ref=app

16th Mar 2020, 3:13 PM
Johnkegd
Johnkegd - avatar
1 ответ
0
In need to give all input at once by space separating in Sololearn.. Like 1223 2334 23344 233.... Or line by line at once only.. Edit: Kindly run this program, it shows how to input to console in Sololearn. Hope it helps you understand SoloLearn console behaviour.. https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
16th Mar 2020, 3:28 PM
Jayakrishna 🇮🇳