It would be nice ... if the I/O classes defined an EOF constant that
people could use to check for EOF rather than using -1,like this:
while (System.in.read() != EOF)
. . .
Comments
EVALUATION
The I/O classes are well-specified to return -1 on EOF, or throw an
EOFException. Adding a constant to InputStream and Reader (is that sufficient)
might, however, make things a little clearer. -- mr@eng 12/15/1997
Will not fix. This isn't any more compelling three years later.
-- ###@###.### 2002/5/7