nextLine() The nextLine() method of the java. util. Scanner class scans from the current position until it finds a line separator delimiter . The method returns the String from the current position to the end of the line.
nextLine() The nextLine() method of the java. util. Scanner class scans from the current position until it finds a line separator delimiter . The method returns the String from the current position to the end of the line.