algs4; exercise 1.1.21 - check for EOF