+ 1

Is there a way to pass user inputs several times in java in SoloLearn's code playground?

21st Sep 2017, 12:35 PM
omar alhelo
omar alhelo - avatar
2 Antworten
+ 4
It's not possible to input something while the code is running, that's a problem of the playground.
21st Sep 2017, 12:42 PM
Jonas Schröter
Jonas Schröter - avatar
+ 3
Scanner scanner = new Scanner (System.in); int i1 = scanner.nextInt(); int i2 = scanner.nextInt(); int i3 = scanner.nextInt(); then put every input like this: 1 2 3
21st Sep 2017, 12:41 PM
Jonas Schröter
Jonas Schröter - avatar