created: 06/02/00; revised: 07/08/02, 06/08/03, 07/23/06, 08/14/2010
This chapter discusses input and output (I/O)
using the package
I/O is done using streams.
A stream is a sequence of data flowing from a
source to a destination.
I/O streams can be connected to a wide variety of
data sources and destinations.
You have already used streams in reading data from the keyboard and in writing data to the monitor. Streams are used for much more than that.
Java can read data from the Internet. What does this data look like to a Java program?