Skip to content

sathishmadem/java-streams-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Streams Practice Problems

This repository contains 50 Java Streams practice problems, ranging from beginner to advanced. It covers:

  • Filtering, mapping, reducing
  • Grouping and partitioning
  • Sorting and custom collectors
  • Real-world data transformations

Why this project?

If you're learning Java Streams or preparing for coding interviews, these problems provide hands-on exercises and solutions.

Example problems

  • Find the first repeated word in a list
  • Group transactions by type and sum amounts
  • Flatten a nested list and sort
  • Get top N longest strings
  • Many more!

How to run

Clone this repo and run individual Java files from src/streams/. All files contain a main() method.

javac src/streams/Problem01.java
java streams.Problem01

About

50 Java Streams practice problems with solutions -> Beginner to Advanced.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages