+ 1
why thereâs no output
3 Answers
+ 6
David Yan,
If you want to input a string Just after the input int.
Then you have to provide a new line character.
Please check this code.
I hope it will Help you.
https://code.sololearn.com/cji1JP4tJMEP/?ref=app
+ 2
Try writing the last input in the same line as the one before it
3
5 hello world
Because nextLine accept \n as a whole input so if you put them on separated lines it will stop immediately after the new line and will not output anything
0
i have no idea, but it works when I removed the two integer inputs