Streams
To save data permanently within a Java program, or to retrieve that data later, you must use at least one stream.
A stream is an object that takes information from one source and sends it somewhere else. The name is inspired by water streams that take fish, boats, inner tube riders, and industrial pollutants from one place to another.
Streams connect a diverse variety of sources, including computer programs, hard drives, Internet servers, computer memory, and CD-ROMs. Because all these things use streams, once you learn how to work with one kind of data, you will be able to work with others in the same manner.
During this hour, you will use streams to read and write data stored in files on your computer.
There are two kinds of streams: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access