4th Oct 2020, 11:08 AM
Zhengrong Yan
Zhengrong Yan - avatar
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
4th Oct 2020, 11:41 AM
P∆WAN M∆URY∆ - avatar
+ 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
4th Oct 2020, 11:21 AM
Ruba Kh
Ruba Kh - avatar
i have no idea, but it works when I removed the two integer inputs
4th Oct 2020, 11:21 AM
Roderick Davis
Roderick Davis - avatar