You can write programs that write text lines to the "console", which is typically a DOS command window..
Console Input: Scanner
The java.util.Scanner class (added in Java 5) allows simple console and file input..
Console Input-Output (Java 5)
Java 5's java.util.Scanner class has simplified console I0..
Console vs Dialog I/O
Console I/O was the only kind of I/O that was built into programming langauges from the beginning of programming until recently..