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.5K+ 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
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 map(Function mapper) is aninterm...
read more
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream peek() Method in Java with Examples
Last Updated: 05 May 2024
In Java, Stream provides an powerful alternative to process data where here we will be discussing one of the very frequently used methods named peek() which being a consum...
read more
Java
Technical Scripter
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream.of(T t) in Java with examples
Last Updated: 06 December 2018
Stream of(T t) returns a sequential Stream containing a single element i.e, a singleton sequential stream. A sequential stream work just like for-loop using a single core....
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream skip() method in Java with examples
Last Updated: 06 December 2018
Prerequisite : Streams in javaThe skip(long N) is a method of java.util.stream.Stream object. This method takes one long (N) as an argument and returns a stream after remo...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream generate() method in Java with examples
Last Updated: 06 December 2018
Stream generate(SupplierT s) returns an infinite sequential unordered stream where each element is generated by the provided Supplier. This is suitable for generating cons...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream count() method in Java with examples
Last Updated: 06 December 2018
long count() returns the count of elements in the stream. This is a special case of a reduction (A reduction operation takes a sequence of input elements and combines them...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream min() method in Java with Examples
Last Updated: 25 July 2019
Stream.min() returns the minimum element of the stream based on the provided Comparator. A Comparator is a comparison function, which imposes a total ordering on some coll...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream sorted (Comparator comparator) method in Java
Last Updated: 06 December 2018
Stream sorted(Comparator comparator) returns a stream consisting of the elements of this stream, sorted according to the provided Comparator. For ordered streams, the sort...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
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 imposes a total ordering on some coll...
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 method is stable but for unord...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream.distinct() in Java
Last Updated: 06 December 2018
distinct() returns a stream consisting of distinct elements in a stream. distinct() is the method of Stream interface. This method uses hashCode() and equals() methods to ...
read more
Misc
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
Stream.concat() in Java
Last Updated: 06 December 2018
Stream.concat() method creates a concatenated stream in which the elements are all the elements of the first stream followed by all the elements of the second stream. The ...
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 and returns an Optional. It is co...
read more
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
stream.limit() method in Java
Last Updated: 27 August 2024
Prerequisite : Streams in Java8 The limit(long N) is a method of java.util.stream.Stream object. This method takes one (long N) as an argument and returns a stream of size...
read more
Java
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 !