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
6 Answers
+ 1
Hello hipocosito82 Videojuegos
Can you show me your code?
+ 2
It is on the question description
+ 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
+ 1
Thank you too much :)
+ 1
Your welcome :)