0

How can I use the Scanner in a java code?

I'm trying to use the Scanner in a java code but it don't work, it's a system problem? Code: https://code.sololearn.com/claj7gh3rIZV/?ref=app

15th Apr 2020, 7:12 PM
hipocosito82 Videojuegos
hipocosito82 Videojuegos - avatar
6 Answers
+ 1
Hello hipocosito82 Videojuegos Can you show me your code?
15th Apr 2020, 7:32 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
It is on the question description
15th Apr 2020, 7:59 PM
hipocosito82 Videojuegos
hipocosito82 Videojuegos - avatar
+ 1
Your code is correct. An example how solo input works: nombre = in.nextLine(); anios = in.nextInt(); clave = in.nextInt(); On sololearn you have to enter all values at the beginning. a string for nombre [enter] because of nextLine() an int for anios [space] an int for clave "a String" num1 num2
15th Apr 2020, 8:06 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Thank you too much :)
15th Apr 2020, 8:09 PM
hipocosito82 Videojuegos
hipocosito82 Videojuegos - avatar
+ 1
Your welcome :)
15th Apr 2020, 8:19 PM
Denise Roßberg
Denise Roßberg - avatar