+ 1

Hi. Could you help me. In netbeans it is ok. But here does not work the second scanner

https://code.sololearn.com/cJSSsKnM3gk8/?ref=app

8th Jul 2019, 8:03 PM
ŠŠ½Š“рŠµŠ¹ ŠØŠŗŠ°Š»ŃŃ€
ŠŠ½Š“рŠµŠ¹ ŠØŠŗŠ°Š»ŃŃ€ - avatar
4 Answers
+ 3
On sololearn you can use just one scanner. And you need only one scanner because you can use it for all input: Scanner scan = new Scanner(System.in); int birthday = scan.nextInt(); int speed = scan.nextInt();
8th Jul 2019, 8:36 PM
Denise RoƟberg
Denise RoƟberg - avatar
+ 2
No because on sololearn you have to enter all values at the beginning. For interactive codes you should use your ide not the code playground.
8th Jul 2019, 8:48 PM
Denise RoƟberg
Denise RoƟberg - avatar
+ 1
Yes. Understand. Thanks
8th Jul 2019, 8:51 PM
ŠŠ½Š“рŠµŠ¹ ŠØŠŗŠ°Š»ŃŃ€
ŠŠ½Š“рŠµŠ¹ ŠØŠŗŠ°Š»ŃŃ€ - avatar
0
Yea. Thanks. But it will not be such interactive))
8th Jul 2019, 8:40 PM
ŠŠ½Š“рŠµŠ¹ ŠØŠŗŠ°Š»ŃŃ€
ŠŠ½Š“рŠµŠ¹ ŠØŠŗŠ°Š»ŃŃ€ - avatar