🌐
Dev.java
dev.java › learn › api › streams
The Stream API - Dev.java
The Stream API is your best tool to process your in-memory data following a map/filter/reduce approach.
🌐
GeeksforGeeks
geeksforgeeks.org › java › stream-in-java
Stream In Java - GeeksforGeeks
Stream API is a way to express and process collections of objects. Enable us to perform operations like filtering, mapping, reducing and sorting. Java Stream Creation is one of the most basic steps before considering the functionalities of the ...
Published   3 weeks ago
Discussions

[discussion] Abuse of java streams?
Check Effective Java. It has a really good chapter about abusing streams. More on reddit.com
🌐 r/java
158
126
February 1, 2024
What exactly are streams?
There are two kinds of streams in Java - Input/Output streams, and Java8 streams. Since you don’t specify, I’ll try to explain both of them. I/O Streams: These are sequences of bytes that you can read from (InputStream and its subclasses) or write to (OutputStream and its subclasses). They’re not very interesting, for three reasons: They’re mostly just Java’s wrapper for file handles, which function exactly like the corresponding I/O constructs in every other programming language. They’ve been mostly supplanted by Reader and Writer, which do essentially the same thing only with characters rather than bytes. You can have I/O streams of objects, too; they’re basically just serializers or deserializers on top of output or input streams. The main reason is that they’re passive. The only thing you can do with a stream is read from it or write to it, or if it’s an input stream test to see whether it’s empty. Java 8 Streams: are something new (to Java — they’ve been around for a long time in functional programming languages), and much more interesting. Java 8 streams are basically a generalization of lists: they are sequences of objects; the difference is in how you use them. Suppose, for example that you have a list of Person objects, and you want to make a list of all the pets belonging to people over 35 years old. In Java 7, you would do it like this: List List pets = new ArrayList<>(); for (Person p : people) { if (p.getAge() > 35) { pets.add(p.getPet()); } } In Java8, you can do this: List pets = people.stream() . filter((p) -> p.getAge() > 35) . map(Person::getPet) . collect(Collectors.toList()); Instead of operating on elements of the list, you’re telling the stream to apply functions to itself. Everything knows its input and output class, so you don’t have to declare any intermediate results. The result is something that’s a lot more readable, and potentially more efficient. That’s the other cool thing about streams: if the functions you’re mapping with don’t have side effects, you can operate on elements in parallel and splice them all back together at the end. You basically get map/reduce for free. Java isn’t anywhere near the best language for functional programming — Scala, which runs in the JVM and can be mixed with Java, is better. Haskell is better still. But if you’re stuck using Java it’s a godsend. Source: https://www.quora.com/What-is-stream-in-java More on reddit.com
🌐 r/learnjava
6
39
February 14, 2020
Best way to learn streams api
Read every section here -> https://dev.java/learn/api/streams/ A couple days later, read them all again. You’ll be working with streams very comfortably after that. More on reddit.com
🌐 r/learnjava
9
9
October 10, 2024
Can someone help me with understanding how Streams in Java work?
My take is "Functional Programming Support". Using lambdas and passing them around as any other object is the basic tenet of using functions as your unit of logic. FP allow for lots of lazy evaluation, recycling stuff, do parallel stuff, and immutability starts as a burden but one day it saves you from your own mistakes. I guees it took that oong because Java was the Object Language and if you wanted FP on the JVM, there was Scala and Clojure. But it was a step in the right direction to allow for mixing programming paradigms in Java. I really enjoy doing OO for organising code and managing behaviour, and implementing basic logic in FP. And I can't stress enough how the declarative nature of FP is so much easier to read and maintain than imperative code. More on reddit.com
🌐 r/java
42
72
July 6, 2021
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › util › stream › Stream.html
Stream (Java Platform SE 8 )
3 weeks ago - A stream pipeline consists of a source (which might be an array, a collection, a generator function, an I/O channel, etc), zero or more intermediate operations (which transform a stream into another stream, such as filter(Predicate)), and a terminal operation (which produces a result or side-effect, such as count() or forEach(Consumer)).
🌐
Baeldung
baeldung.com › home › java › java streams › the java stream api tutorial
The Java Stream API Tutorial | Baeldung
October 5, 2023 - In this comprehensive tutorial, we’ll go through the practical uses of Java Streams from their introduction in Java 8 to the latest enhancements in Java 9. To understand this material, readers need to have a basic knowledge of Java 8 (lambda expressions, Optional, method references) and of the Stream API.
🌐
Medium
medium.com › @gauravverma.career › stream-api-in-java-8-introduction-2a3754dfaca6
Stream API in Java 8— Introduction | by Gaurav Verma | Medium
December 7, 2025 - Stream API in Java 8— Introduction Before diving in, a basic understanding of Lambda Expressions will help you appreciate the power of Streams. The Problem: Java Collections Before Streams Remember …
🌐
Bell Software
bell-sw.com › blog › a-guide-to-java-stream-api
How to use Java streams
Stream API was introduced in Java 8 to equip developers with a way of processing collections of elements using the functional programming approach.
🌐
Stackify
stackify.com › streams-guide-java-8
A Guide to Java Streams: In-Depth Tutorial With Examples
September 4, 2024 - Java Streams offers a robust and declarative approach to processing collections of data in Java, initially introduced in Java 8. With Java 9, several enhancements to the Streams API make it even more powerful and expressive.
🌐
Jade Global
jadeglobal.com › blog › introduction-java-eight-stream-api
Introduction to Java 8 Stream API - Jade Global
Java 8 introduced the Stream API, a powerful feature added to the Collections API that allows developers to process sequences of elements in a functional programming style. Streams represent a sequence of elements and support various operations ...
Find elsewhere
🌐
InfoWorld
infoworld.com › home › software development › programming languages › java
Java Stream API tutorial: How to create and use Java streams | InfoWorld
November 13, 2025 - The Java Stream API transforms how you handle data. You can declare what should happen—such as filtering, mapping, or sorting—while Java efficiently handles how it happens. Combining streams, collectors, and optionals makes modern Java concise, ...
🌐
JavaTechOnline
javatechonline.com › home › stream api in java 8
Stream API In Java 8 - JavaTechOnline
January 23, 2026 - Using Collections API, it is not so easy to write the codes for even some common data processing operations such as filtering, sorting, matching, finding, mapping etc. That’s why Java API designers have come up with Stream API in Java 8 to implement more complex data processing logics with the least number of lines of code.
🌐
Brilworks
brilworks.com › blog › java-stream-api
Stream API in Java Explained | Benefits & Examples
To put it simply, the Java Stream API enables programmers to declaratively (you just describe what to do, not how to do it step-by-step) and functionally (using reusable operations) process data sequences.
🌐
Medium
mominjahid.medium.com › all-about-java-8-streams-api-practical-guide-3a9c21cc5540
All About Java 8 Streams API. Java 8 introduced the Stream API… | by Jahid Momin | Medium
April 6, 2024 - Java 8 introduced the Stream API, revolutionizing the way we process collections in Java. Streams provide a concise and expressive way to perform bulk operations on data, enabling functional-style programming paradigms.
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › util › stream › package-summary.html
java.util.stream (Java Platform SE 8 )
3 weeks ago - Java™ Platform Standard Ed. 8 ... Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections. ... Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections. For example: int sum = widgets.stream() .filter(b -> b.getColor() == RED) .mapToInt(b -> b.getWeight()) .sum();
🌐
Readthedocs
java-8-tips.readthedocs.io › en › stable › streamsapi.html
6. Stream API — Java 8 tips 1.0 documentation
In this chapter we will have an extensive look at various operations supported by stream API. java.util.stream.Stream contains numerous methods that let you deal with complex data processing queries such as filtering, slicing, mapping, finding, matching and reducing both in sequential and parallel ...
🌐
JRebel
jrebel.com › blog › java-streams-in-java-8
Using Java Streams in Java 8 and Beyond | JRebel by Perforce
Map: Transforms the stream elements into something else, it accepts a function to apply to each and every element of the stream and returns a stream of the values the parameter function produced. This is the bread and butter of the Java streaming API.
🌐
How to do in Java
howtodoinjava.com › home › java streams › java stream api: real-world examples for beginners
Java Stream API: Real-world Examples for Beginners
September 19, 2023 - The idea is that a user will extract ... producer-consumer relationship. In Java, java.util.Stream interface represents a stream on which one or more operations can be performed....
🌐
Javatpoint
javatpoint.com › java-8-stream
Stream API - javatpoint
Java 8 Stream with examples and topics on functional interface, anonymous class, lambda for list, lambda for comparable, default methods, method reference, java date and time, java nashorn, java optional, stream, filter etc.
🌐
Oracle
docs.oracle.com › en › java › javase › 11 › docs › api › java.base › java › util › stream › Stream.html
Stream (Java SE 11 & JDK 11 )
January 20, 2026 - For example, a stream implementation ... from a stream pipeline -- and therefore elide invocation of behavioral parameters -- if it can prove that it would not affect the result of the computation. This means that side-effects of behavioral parameters may not always be executed and should not be relied upon, unless otherwise specified (such as by the terminal operations forEach and forEachOrdered). (For a specific example of such an optimization, see the API note documented ...
🌐
Medium
medium.com › @cibofdevs › java-stream-apis-an-in-depth-guide-24b523de0bf4
Java Stream APIs: An In-Depth Guide | by Ahmad Wijaya | Medium
June 20, 2024 - Java Stream API, introduced in Java 8, provides a powerful and expressive way to process sequences of elements. Streams enable functional-style operations on collections of elements, such as filtering, mapping, and reducing.
🌐
DigitalOcean
digitalocean.com › community › tutorials › java-8-stream
Java 8 Stream - Java Stream | DigitalOcean
August 3, 2022 - The program is sequential in nature, there is no way we can do this in parallel easily. There is a lot of code to do even a simple task. To overcome all the above shortcomings, Java 8 Stream API was introduced. We can use Java Stream API to implement internal iteration, that is better because java framework is in control of the iteration.