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
If you're learning Java Streams or preparing for coding interviews, these problems provide hands-on exercises and solutions.
- 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!
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