+ 1

I input string with space, but the string only output first name not with last name. WHY??

String Java

4th Sep 2017, 12:07 PM
Irman Utamara
Irman Utamara - avatar
3 Answers
+ 5
May be you are using next() instead of nextLine().
4th Sep 2017, 1:16 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 2
post your code.
4th Sep 2017, 12:45 PM
Salekin
Salekin - avatar
+ 2
thank all nextLine() work
4th Sep 2017, 1:50 PM
Irman Utamara
Irman Utamara - avatar