+ 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.

14th Feb 2017, 9:35 PM
Tashi N
Tashi N - avatar
8 Antworten
+ 9
how about transitioning to js and web? xD
14th Feb 2017, 10:16 PM
Burey
Burey - avatar
+ 8
Yeah, web seems to be the only way then. Thx, Burey.
14th Feb 2017, 10:19 PM
Tashi N
Tashi N - avatar
+ 7
tried multi-threading xD no go ;_;
14th Feb 2017, 10:03 PM
Burey
Burey - avatar
+ 7
Burey, it was worth a try...
14th Feb 2017, 10:07 PM
Tashi N
Tashi N - avatar
+ 6
Can't trick out that console. Seems like SoloLearn overrode every method that would allow to force multiple prompts.
14th Feb 2017, 9:37 PM
Tashi N
Tashi N - avatar
+ 6
DerpyOmnister, wow - you are a wizard, right?
14th Feb 2017, 10:08 PM
Tashi N
Tashi N - avatar
+ 3
SOLOLEARN! ADD IT SO THAT THE PROMPTS SHOW UP IN THE CONSOLE!
14th Feb 2017, 10:02 PM
DerpyOmnister
DerpyOmnister - avatar
+ 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.
15th Feb 2017, 5:42 AM
ChaoticDawg
ChaoticDawg - avatar