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