What is the purpose of the hasNextLine() method in Java?
Determines if the file has reached the end
Reads the next line of text from a file
Appends a new line to the end of the file
Checks if there is another line of text available for reading from a file