0
I want to know the purpose. nextLine() method
Please help me because i am beginner https://code.sololearn.com/c6W2l2O8K9ts/?ref=app
2 Respostas
+ 3
It reads the whole line and store in a String variable.
+ 1
The nextLine() method of Java Scanner class is used to get the input string that was skipped of the Scanner object.
https://www.geeksforgeeks.org/scanner-nextline-method-in-java-with-examples/
Thanks for your question and happy coding.