HU
Java Stream Kata
A code kata is an exercise in programming which helps programmers hone their skills through practice and repetition.
https://en.wikipedia.org/wiki/Kata_(programming)
This repository contains different tasks related to Java Streams.
Leave a ⭐ :)
If you like the content do not forget to leave a star at the top right corner. Thank you!
https://github.com/HubertWo/java-stream-kata
Setup
Minimal setup is required. Tools you will need:
- Java 11+
- Maven
- IDE (In my case IntelliJ IDEA)
How to run exercises
Each exercise is an jUnit test.
You can run test from both Maven or any modern IDE.
Where are answers?
Each task has solution in "Click here to see the answer" block.

Branch with all answers
Branch answers has all answers in place and all tests are green.
Maven
To check task1 from Basics package:
mvn surefire:test -Dtest=BasicsTest#task1
IDE
After importing project press "Play" near the test you want to run.
More
- Java Stream API: https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/stream/package-summary.html
- How to run single test using Maven : https://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html
- How to run single test using IntelliJ IDEA: https://www.jetbrains.com/help/idea/performing-tests.html