+ 11
Code playground: Read inputs by multiple prompts
Did anyone figure out a way to read inputs from console one after another rather than one input with multiple lines? I tried everything I know (BufferedReader, Scanner, System.console () ) using methods like close (), flush () and trying to create a new instance.
8 ответов
+ 9
how about transitioning to js and web? xD
+ 8
Yeah, web seems to be the only way then. Thx, Burey.
+ 7
tried multi-threading xD
no go ;_;
+ 7
Burey, it was worth a try...
+ 6
Can't trick out that console. Seems like SoloLearn overrode every method that would allow to force multiple prompts.
+ 6
DerpyOmnister,
wow - you are a wizard, right?
+ 3
SOLOLEARN! ADD IT SO THAT THE PROMPTS SHOW UP IN THE CONSOLE!
+ 3
@Tashi N
You could use a different online IDE like the ones at tutorialspoint.com or somewhere else. Most are far better than what you get here. You can usually get a link to your code there to share. Then if you are wanting to share the code in the playground just copy it over and put the link to the saved code at that IDE in your comments, so people can see how it should really run.