0
How to provide many specific inputs to my java code on sololearn using scanner?
When sololearn's "JVM" finds an input attempt a pop up asking for it with it's message is shown, which should be fine with one input, but not with many, how can i work around it to ask user more than one input with a custom message?.
1 Respuesta
+ 3
sololearn handles everything server side. So when it asks for input, it's asking for all of them at once.
To enter multiple entries, just submit the inputs needed in multiple lines. So if you have two inputs needed, when it prompts, your entry should look like this:
hello
world
Sololearn reads each line as a separate input entry.
Ad for customizing the input prompt, I don't think that's possible (as far as I know) since we don't have access to the sololearn graphical interface.