0

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

31st May 2021, 4:42 PM
Samuel Ganda
Samuel Ganda - avatar
6 odpowiedzi
+ 3
For further help post your code. We will help you more to get your requirements
31st May 2021, 5:32 PM
Atul [Inactive]
+ 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.
1st Jun 2021, 12:46 AM
A͢J
A͢J - avatar
+ 1
Type first input, press enter and type another input.
31st May 2021, 5:52 PM
Ore
Ore - avatar
0
"import java.util.Scanner;" should be the very first
31st May 2021, 5:30 PM
Solo
Solo - avatar