0

Multiple scanners in code playground

Can you add multiple scanners to input variables in the code playground? I've added a second a few lines of code after the first but when I run it, it seems to skip over the second.

5th Jul 2017, 5:25 PM
Darren
3 Answers
+ 4
You might be able to, not sure. Why create a second scanner anyway? It's not like the input stream is going to be different. Just use the first scanner.
5th Jul 2017, 5:50 PM
Rrestoring faith
Rrestoring faith - avatar
+ 3
pass the input in two seperate lines
5th Jul 2017, 5:50 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
0
Thanks! I think I've misunderstood how to use the scanners... I'll go back and read up!
5th Jul 2017, 5:53 PM
Darren