Chapter 14: Java Standard Streams
In this chapter, we will talk about processing data streams, which are different from the I/O streams we reviewed in Chapter 5, Strings, Input/Output, and Files. We will define what data streams are, how to process their elements using methods (operations) of the java.util.stream.Stream object, and how to chain (connect) stream operations in a pipeline. We will also discuss stream initialization and how to process streams in parallel.
The following topics will be covered in this chapter:
- Streams as a source of data and operations
- Stream initialization
- Operations (methods)
- Numeric stream interfaces
- Parallel streams
- Creating a standalone stream-processing application
By the end of the chapter, you will be able ...
Get Learn Java 17 Programming - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.