Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
How do you split multiple inputs into separate lines?
Looks like your program needs input Split multiple inputs into separate lines https://code.sololearn.com/cf2A18ZMM3z3/?ref=app
4 Respostas
+ 3
For further help post your code. We will help you more to get your requirements
+ 2
Samuel Ganda
If you want to take multiple input in Sololearn then just take inputs in seperate lines and press enter.
Like :
123
AJ
In your code, there should be two input statement like.
int id = scanner.nextInt();
String name = scanner.next();
If there are 3 input then there should be 3 input statement and so on.
Notes: You have imported scanner class wrongly. Every imported class should be on above the class name means it should be always on top in Java.
+ 1
Type first input, press enter and type another input.
0
"import java.util.Scanner;" should be the very first