The problem with learning console I/O is that it's almost totally useless in a real GUI program. The Scanner class is only available in Java 5 and beyond, and doing standard console input without Scanner is not a pretty picture for a beginner. Scanner will be useful when you learn text file input, but that topic is often taught at the end of the second course.
Java code
Scanner was introduced in Java 5 (JDK 1.5) and is not available in older versions of Java. It can be used for input from the conso...
↧