+ 1
Code problem2
sololearn doesn't support java scanner as well, what should I do when I design some code require user input
2 ответов
+ 4
Scanner is fully supported. The problem is how SoloLearn Playground works.
Before your program is executed, the application asks you for ALL of your input in a single prompt. Once you confirm it, the data and your program get run on a remote server, where all of the output is held. If your program tries to use too much time, the server stops it. After your program is finished, the output is sent back to the application for display. It is also possible the application times out before getting all of your output requiring you to rerun it.
+ 3
I've seen several codes using the scanner class here
https://www.sololearn.com/learn/Java/2220/