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