Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Java-Functions
4.2K+ articles
Computer Networks
3.6K+ articles
Java - util package
1.6K+ articles
Java-Collections
1.1K+ articles
Computer Subject
1.1K+ 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
Java-Collections
Computer Subject
Computer Networks
Java - util package
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
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 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: 06 December 2018
Stream forEach(Consumer action) performs an action for each element of the stream. Stream forEach(Consumer action) is a terminal operation i.e, it may traverse the stream ...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream allMatch() in Java with examples
Last Updated: 15 December 2022
Stream allMatch(Predicate predicate) returns whether all elements of this stream match the provided predicate. It may not evaluate the predicate on all elements if not nec...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream anyMatch() in Java with examples
Last Updated: 06 December 2018
Stream anyMatch(Predicate predicate) returns whether any elements of this stream match the provided predicate. It may not evaluate the predicate on all elements if not nec...
read more
Misc
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
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
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 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
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream findFirst() in Java with examples
Last Updated: 06 December 2018
Stream findFirst() returns an Optional (a container object which may or may not contain a non-null value) describing the first element of this stream, or an empty Optional...
read more
Misc
Java
Technical Scripter
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 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
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 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
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !