Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.2K+ articles
Java
9.4K+ articles
Misc
7.7K+ articles
Java-Functions
4.2K+ articles
Computer Networks
3.4K+ articles
Java - util package
1.6K+ articles
Java-Collections
1.1K+ articles
Computer Subject
831+ articles
java-stream
142+ articles
Java-Stream interface
29 posts
Recent Articles
Popular Articles
STOMP Protocol
Last Updated: 11 September 2023
STOMP is the Simple (or Streaming) Text Orientated Messaging Protocol, formerly known as TTMP. It provides an interoperablewire formatthat allows STOMP clients to talk wit...
read more
Computer Subject
Computer Networks
Java-Collections
Java - util package
Java-Stream interface
Stream noneMatch() Method in Java with Examples
Last Updated: 25 November 2021
A stream is a sequence of objects that supports various methods which can be pipelined to produce the desired result. noneMatch() of Stream class returns whether no elemen...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream forEachOrdered() method in Java with examples
Last Updated: 06 December 2018
Stream forEachOrdered(Consumer action) performs an action for each element of this stream, in the encounter order of the stream if the stream has a defined encounter order...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream forEach() method in Java with examples
Last Updated: 23 January 2026
The Stream.forEach(Consumer action) method performs a given action on each element of the stream. It is a terminal operation, which may traverse the stream to produce a re...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Java streams counting() method with examples
Last Updated: 06 December 2018
In Java 8, there is predefined counting() method returned by Collectors class counting() method to count the number of elements in a Stream.Syntax :public static Collecto...
read more
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream flatMapToInt() in Java with examples
Last Updated: 06 December 2018
Stream flatMapToInt(Function mapper) returns an IntStream consisting of the results of replacing each element of this stream with the contents of a mapped stream produced ...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream flatMapToLong() in Java with examples
Last Updated: 06 December 2018
Stream flatMapToLong(Function mapper) applies given mapper function to each element of a stream and returns a LongStream. Stream flatMapToLong(Function mapper) is an inter...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream findFirst() in Java with examples
Last Updated: 26 December 2025
The Stream.findFirst() method in Java returns an Optional describing the first element of the stream. If the stream is empty, it returns an empty Optional. This is a termi...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Java Stream findAny() with examples
Last Updated: 26 September 2023
Stream findAny() returns an Optional (a container object which may or may not contain a non-null value) describing some element of the stream, or an empty Optional if the ...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream filter() in Java with examples
Last Updated: 09 July 2024
Stream filter(Predicate predicate) returns a stream consisting of the elements of this stream that match the given predicate. This is an intermediate operation. These oper...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream anyMatch() in Java with examples
Last Updated: 24 December 2025
The anyMatch() method of the Stream interface checks whether any element of the stream matches the given condition (predicate). It is a short-circuiting terminal operation...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream allMatch() in Java with examples
Last Updated: 07 January 2026
The allMatch() method in Java Streams is a terminal operation that returns true if all elements of the stream match the given predicate, or if the stream is empty. It is s...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream mapToDouble() in Java with examples
Last Updated: 06 December 2018
Stream mapToDouble (ToDoubleFunction mapper) returns a DoubleStream consisting of the results of applying the given function to the elements of this stream.Stream mapToDou...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream mapToLong() in Java with examples
Last Updated: 06 December 2018
Stream mapToLong(ToLongFunction mapper) returns a LongStream consisting of the results of applying the given function to the elements of this stream.Stream mapToLong(ToLon...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream mapToInt() in Java with examples
Last Updated: 06 December 2018
Stream mapToInt(ToIntFunction mapper) returns an IntStream consisting of the results of applying the given function to the elements of this stream.Stream mapToInt(ToIntFun...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
1
2