Streams in Java

Stream Pipeline:

  1. Source of stream → mandatory part
  2. Intermediate operations → optional part
  3. Terminal operation → mandatory part

Stream Source:

Intermediate Operation:

filter()

distinct()

map()

flatMap()

Terminal Operation:

count()

findAny() and findFirst()

allMatch(), anyMatch(), noneMatch()

--

--

--

Software engineer trying to keep up with the technology curve

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Managing Big Data Time Series — Part 2

Application Frameworks

SOLID Design Principles for Object-Oriented Design

Writeup for Bendy

What Happened Today?

Aviation Data Web Scraping — Part 1

Experience Of Getting Introduced to MERN

Have A Hobby

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sakthi uma M

Sakthi uma M

Software engineer trying to keep up with the technology curve

More from Medium

Java Beginner’s Guide: What it is and why you should learn this programming language

Java??? and a Deep dive into JVM

Breaking the Surface | Chapter 1

How to Build Java Applications Today: #59