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

      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 5

      • Learn Spring Security OAuth

        Focus on the new OAuth2 stack in Spring Security 5

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

  • Guides ▼▲
    • 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
  • Category upJava Collections
  • Category upJava Concurrency

Tag: Java Streams

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

>> Difference Between parallelStream() and stream().parallel() in Java

>> Find the N Most Frequent Elements in a Java Array

>> Can Stream.collect() Return the null Value?

>> Handle Duplicate Keys When Producing Map Using Java Stream

>> Finding All Duplicates in a List in Java

>> Combining Two Lists Into a Map in Java

>> Mapping an Array of Integers to Strings Using Java Streams

>> Spring Data Repositories – Collections vs. Stream

>> Find the First Embedded Occurrence of an Integer in a Java String

>> Understanding the Difference Between Stream.of() and IntStream.range()

>> Initialize an ArrayList with Zeroes or Null in Java

>> Stream to Iterable in Java

>> Convert an ArrayList of Object to an ArrayList of String Elements

>> Check If All the Variables of an Object Are Null

>> Compiling and Executing Code From a String in Java

>> Batch Processing of Stream Data in Java

>> PrintStream vs PrintWriter in Java

>> Sorting a HashSet in Java

>> Retain Only Digits and Decimal Separator in String

>> Finding Max Date in List Using Streams

>> How to Insert a HashMap Into MongoDB With Java?

>> Slicing Arrays in Java

>> Using Streams to Collect Into a TreeSet

>> Java 8 Streams: Multiple Filters vs. Complex Condition

>> Filter Java Stream to 1 and Only 1 Element

>> How to Split a Stream into Multiple Streams

>> Difference Between Flux.create and Flux.generate

>> Collecting Stream Elements into a List in Java

>> Guide to mapMulti in Stream API

>> When to Use a Parallel Stream in Java

>> Convert an Array of Primitives to an Array of Objects

>> Convert a Java Enumeration Into a Stream

>> Returning Stream vs. Collection

>> Should We Close a Java Stream?

>> Add BigDecimals using the Stream API

>> Debugging Java 8 Streams with IntelliJ

>> Guide to Java Parallel Collectors Library

>> Java 8 Stream skip() vs limit()

>> Java 8 Collectors toMap

>> Converting Between Stream and Array in Java

>> Guide to Stream.reduce()

>> Working With Maps Using Streams

>> Counting Matches on a Stream Filter

>> Summing Numbers with Java Streams

>> Java 8 Streams peek() API

>> Java Stream Filter with Lambda Expression

>> Removing Elements from Java Collections

>> Java 8 Streams: Find Items From One List Based On Values From Another List

>> How to Use if/else Logic in Java 8 Streams

>> Operating on and Removing an Item from Stream

>> Introduction to Protonpack

>> Stream Ordering in Java

>> Java Null-Safe Streams from Collections

>> Java Streams

>> Java Streams vs Vavr Streams

>> Introduction to Spliterator in Java

>> Spring Data Java 8 Support

>> Primitive Type Streams in Java 8

>> Introduction to StreamEx

>> “Stream has already been operated upon or closed” Exception in Java

>> How to Iterate Over a Stream With Indices

>> DistinctBy in the Java Stream API

>> Collect a Java Stream to an Immutable Collection

>> Converting String to Stream of chars

>> Merging Streams in Java

>> The Difference Between map() and flatMap()

>> How to Get the Last Element of a Stream in Java?

>> How to Add a Single Element to a Stream

>> String Operations with Java Streams

>> Custom Thread Pools In Java 8 Parallel Streams

>> Java 8 and Infinite Streams

>> Guide to Java 8 groupingBy Collector

>> New Stream Collectors in Java 9

>> Java 8 Stream findFirst() vs. findAny()

>> Iterable to Stream in Java

>> Java 9 Stream API Improvements

>> Filtering a Stream of Optionals in Java

>> Functional Interfaces in Java 8

>> Guide to Java 8’s Collectors

>> The Java 8 Stream API Tutorial

>> New Features in Java 8

>> Introduction to Java 8 Streams

>> Removing all duplicates from a List in Java

  • ↑ Back to Top
The Baeldung logo

Courses

  • All Courses
  • All Bulk Courses
  • All Bulk Team Courses
  • The Courses Platform

Series

  • Java “Back to Basics” Tutorial
  • Jackson JSON Tutorial
  • Apache HttpClient Tutorial
  • REST with Spring Tutorial
  • Spring Persistence Tutorial
  • Security with Spring
  • Spring Reactive Tutorials

About

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