The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Spring Courses ▼▲
    • REST with Spring Boot

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security ▼▲

      THE unique Spring Security education if you’re working with Java today

      • Learn Spring Security Core

        Focus on the Core of Spring Security 6

      • Learn Spring Security OAuth

        Focus on the new OAuth2 stack in Spring Security 6

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

  • Java Courses ▼▲
    • Learn Junit

      Master the most popular Java testing framework.

  • Guides ▼▲
    • Spring Boot

      Get started and go deep into Spring Boot 3

    • Persistence

      The Persistence with Spring guides

    • REST

      The guides on building REST APIs with Spring

    • Security

      The Spring Security guides

  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

Category upJava

Java Streams

Java Streams were introduced in Java 8. Learn how to work with the Stream API through the guides below.

  • >= Java 8 (23)
  • Java Stream Basics (19)
  • Java Collectors (14)
  • Java Null (5)
  • Java Primitives (5)
  • Exception (4)
  • JMH (4)
  • Performance (4)

>> Stream Gatherers in Java

>> Comparing Java Stream and Flux.fromIterable()

>> How to Convert Nested Loops to Stream in Java

>> Processing JDBC ResultSet With Stream API

>> Understanding findAny() and anyMatch() in Streams

>> Collect Successive Pairs From a Stream in Java

  • Java List Basics

>> How to Convert to and From a Stream and Two Dimensional Array in Java

>> How to Sort Map Value List by Element Field Using Java Streams

>> Guide to Finding Min and Max by Group Using Stream API

>> Return Non-null Elements From Java Map Operation

>> Monads in Java

>> Convert InputStream to Stream in Java

>> Collecting into Map using Collectors.toMap() vs Collectors.groupingBy()

>> Flatten a Stream of Maps to a Single Map in Java

>> Modify and Print List Items With Java Streams

>> Get a Range of Items from a Stream in Java

  • Java Stream Basics

>> Collect Stream of entrySet() to a LinkedHashMap

>> Read Input Character-by-Character in Java

>> Java Stream Operation on the Empty List

  • Java Stream Basics

>> Handling NullPointerException in findFirst() When the First Element Is Null

  • ↑ Back to Top
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next →
Course – LSSO – NPI EA (tag = OAuth)
LSSO Course Banner
Course – Spring Sale 2025 – NPI EA (cat = Baeldung)
all courses spring sale 2025
Course – Spring Sale 2025 – NPI (All)
all courses spring sale 2025
The Baeldung logo

Courses

  • All Courses
  • Baeldung All Access
  • Baeldung All Team Access
  • The Courses Platform

Series

  • Java “Back to Basics” Tutorial
  • Learn Spring Boot Series
  • Spring Tutorial
  • Get Started with Java
  • Security with Spring
  • REST with Spring Series
  • All About String in Java

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Our Partners
  • Partner with Baeldung
  • eBooks
  • FAQ
  • Baeldung Pro
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo