+ 1

Java Scanner for User Input without popup?

Hi, I'm pretty new to coding, but I noticed that when using a scanner for user input with Java here on SoloLearn, it will always prompt the user for input via a popup before the program runs. I'd rather it not do this, so that the program has a chance to say "Enter a question:" or some other prompt that the user can respond to, and understand what they're being asked. Is there any other way to ask for user input via Java here on SoloLearn that will run the program step by step and then ask for the question while prompted? Because right now instead of that, it seems like I am stuck with the program asking for ALL of the user input right at the beginning of the program which is seriously not cool. Thanks!

17th Nov 2020, 4:42 AM
Jonathan Mantello
Jonathan Mantello - avatar
3 odpowiedzi
+ 5
As long as you are on Sololearn there is no workaround rather than giving all of your input at once. It is not responsive as you mentioned. You can rather test your code on some other online compilers to check if it is working fine and then upload it in Sololearn if you wish others to see your code.
17th Nov 2020, 5:35 AM
Avinesh
Avinesh - avatar
+ 1
Awesome, thank you guys.
17th Nov 2020, 7:11 AM
Jonathan Mantello
Jonathan Mantello - avatar
0
Hey all, please answer if you know a workaround!
17th Nov 2020, 4:42 AM
Jonathan Mantello
Jonathan Mantello - avatar