0
System.out.println(myVar.nextLine())..
Why is that nextLine() used
2 Answers
+ 6
Continue with Java tutorijal!
Read a complete line - nextLine()
https://www.sololearn.com/learn/Java/2220/
+ 1
Maybe this helps:
Input = "Hello World"
String text = input.next() --> until the first white space --> text = Hello
String text = input.nextLine () --> until the end of the line --> text = Hello World