CS202 Java-138
An end-of-file controlled loop
ldepends on fact that readLine returns null if there is no more data