Skip to Content
Learn Java 17 Programming - Second Edition
book

Learn Java 17 Programming - Second Edition

by Nick Samoylov
July 2022
Beginner
748 pages
15h 1m
English
Packt Publishing
Content preview from Learn Java 17 Programming - Second Edition

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 ...

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.
Start your free trial

You might also like

Learning Java, 4th Edition

Learning Java, 4th Edition

Patrick Niemeyer, Daniel Leuck
Learning Java, 5th Edition

Learning Java, 5th Edition

Marc Loy, Patrick Niemeyer, Daniel Leuck
The Well-Grounded Java Developer, Second Edition

The Well-Grounded Java Developer, Second Edition

Benjamin Evans, Martijn Verburg, Jason Clark

Publisher Resources

ISBN: 9781803241432Supplemental Content