Hi. Could you help me. In netbeans it is ok. But here does not work the second scanner | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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