What is the main difference between next() and nextLine()? My main goal is to read the all text using a Scanner which may be \"con
next()
nextLine()
Scanner
From the documentation for Scanner:
A Scanner breaks its input into tokens using a delimiter pattern, which by default matches whitespace.
From the documentation for next():
A complete token is preceded and followed by input that matches the delimiter pattern.