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.
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
Minimal setup is required. Tools you will need:
- Java 11+
- Maven
- IDE (In my case IntelliJ IDEA)
Each exercise is an jUnit test. You can run test from both Maven or any modern IDE.
Each task has solution in "Click here to see the answer" block.
Branch answers
has all answers in place and all tests are green.
To check task1 from Basics package:
mvn surefire:test -Dtest=BasicsTest#task1
After importing project press "Play" near the test you want to run.
- 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