Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Java
10.4k+ articles
Java-Functions
4.1k+ articles
Java Programs
2k+ articles
Java - util package
1.5k+ articles
Misc
1.4k+ articles
java-intstream
35 articles
Java-Stream interface
29 articles
Java-Stream-programs
27 articles
Java-Collectors
17 articles
Java-Stream-Collectors
15 articles
java-stream
130+ posts
Popular Articles
Recent Articles
Java 8 Stream Tutorial
Last Updated: 05 April 2025
Java 8 introduces Stream, which is a new abstract layer, and some new additional packages in Java 8 called java.util.stream. A Stream is a s
...read more
Java
java-stream
Tutorials
Difference Between map() And flatMap() In Java Stream
Last Updated: 09 January 2025
In Java, the Stream interface has a map() and flatmap() methods and both have intermediate stream operation and return another stream as met
...read more
Java
Technical Scripter
Difference Between
java-stream
Picked
Technical Scripter 2020
How to find duplicate elements in a Stream in Java
Last Updated: 10 January 2023
Given a stream containing some elements, the task is to find the duplicate elements in this stream in Java.Examples:Input: Stream = {5, 13,
...read more
Java
Java Programs
java-stream
Java-Collectors
Java-Stream-programs
Java-Collections-Class
Similar Topics
Java
10.4k+ articles
Java-Functions
4.1k+ articles
Java Programs
2k+ articles
Java - util package
1.5k+ articles
Misc
1.4k+ articles
java-intstream
35+ articles
Java-Stream interface
29+ articles
Java-Stream-programs
27+ articles
Java-Collectors
17+ articles
Java-Stream-Collectors
15+ articles
How to Get ArrayList from Stream in Java 8?
Last Updated: 17 July 2024
Given a Stream, the task is to convert this Stream into ArrayList in Java 8. Examples:Input: Stream: [1, 2, 3, 4, 5]Output: ArrayList: [1,
...read more
Java
Java-ArrayList
java-stream
Java-Stream-programs
Java-List-Programs
Collectors toMap() method in Java with Examples
Last Updated: 06 December 2018
The toMap() method is a static method of Collectors class which returns a Collector that accumulates elements into a Map whose keys and valu
...read more
Java
java-basics
Java - util package
Java-Functions
java-stream
Picked
Java-Stream-Collectors
Java-Collectors
Java 8 Streams | Collectors.joining() method with Examples
Last Updated: 17 January 2023
The joining() method of Collectors Class, in Java, is used to join various elements of a character or string array into a single string obje
...read more
Java
Java-Library
Java - util package
Java-Functions
java-stream
Java-Stream-Collectors
Java-Collectors
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 predi
...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 int
...read more
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream map() in Java with examples
Last Updated: 04 January 2025
Stream map(Function mapper)returns a stream consisting of the results of applying the given function to the elements of this stream.Stream m
...read more
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream flatMap() in Java with examples
Last Updated: 11 March 2025
Stream flatMap(Function mapper) returns a stream consisting of the results of replacing each element of this stream with the contents of a m
...read more
Java
Technical Scripter
Java - util package
java-stream
Stream.max() method in Java with Examples
Last Updated: 06 December 2018
Stream.max() returns the maximum element of the stream based on the provided Comparator. A Comparator is a comparison function, which impose
...read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream sorted() in Java
Last Updated: 06 December 2018
Stream sorted() returns a stream consisting of the elements of this stream, sorted according to natural order. For ordered streams, the sort
...read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream.reduce() in Java with examples
Last Updated: 28 August 2024
In Java, the Stream.reduce() method is used to perform a reduction on the elements of a stream using an associative accumulation function an
...read more
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Set to List in Java
Last Updated: 10 June 2022
Given a set (HashSet or TreeSet) of strings in Java, convert it into a list (ArrayList or LinkedList) of strings. In java, Set interface is
...read more
Misc
Java
Java-Collections
Java-ArrayList
java-treeset
java-hashset
java-LinkedList
java-stream
java-list
Java-Stream-programs
Java-List-Programs
Java-Set-Programs
Stream In Java
Last Updated: 09 April 2025
Stream was introduced in Java 8, the Stream API is used to process collections of objects. A stream in Java is a sequence of objects that su
...read more
Java
Java - util package
java-stream
Java 8
1
2
3
4
5
6
7
8
>>
Last
1
2
3
4
5
6
>>
Last
1
2
3
4
>>
Last
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 !