What value does readLine() return when it has reached the end of a file?
The readLine() method returns null when it has reached the end of a file. In Java, the readLine() method is typically associated with reading data from a BufferedReader or a similar class that reads characters from a stream. When readLine() reaches the end of a file, it returns null. Here’s a simple example using BufferedReader: java import java.io.BufferedReader; import … Read more