News and views from members of the Java team at Oracle
Java's stream API needs more intermediate operations. Instead of adding them all to the Stream interface, Stream::gather, a new meta-operation proposed by JEP 461, allows the JDK and us to implement the operations we need as gatherers. Here's how to create gatherers from an initializer, integrator, finisher, and combiner.
Stream gatherers:
VS Code:
dev.java: the destination for Java developers
OpenJDK: the place to collaborate on the Java Platform and related projects
Oracle Java: the #1 programming language and development platform
The Inside Java Newscast is a monthly YouTube show - check out the YouTube playlist for all the episodes. Since 2026, we also publish it as a podcast. For more Java news, subscribe to our RSS feed and follow @Java on X.