June 2004
Intermediate to advanced
848 pages
21h 28m
English
For the first nine years of its life, Java did not have any routines to do console input. The official spin from Sun was that you were supposed to use a GUI for interactive I/O. If you wanted to get input from the command line, you had to roll your own support using several classes. It was ugly, and it needlessly gave a bad impression of Java to generations of student programmers. Most teachers gave their students a class to do console I/O, and only taught the API support much later.
The JDK 1.5 release introduces a simple text scanner that can be used to read input. There is also a new method that provides a feature essentially ...
Read now
Unlock full access