GitHub - HubertWo/java-playground: Learn about changes in Java by example. Repository contains unit tests of Java features to help stay up to date with recent changes in the language. โ๏ธ ๐ฏ
Project with various Java functionalities categorized by version. All examples are in form of unit tests, so you can try them by your own and test your ideas.
If you like the repo don't forget to leave a โญ๏ธ Thanks!
Quick start
To clone the repository and run all tests run commands bellow. Project requires Java 16 and Maven.
git clone https://github.com/HubertWo/java-playground.git; cd java-playground; mvn test
[INFO] Results: [INFO] Tests run: X, Failures: 0, Errors: 0, Skipped: 0 [INFO] BUILD SUCCESS
Topics
Click on the topic to jump straight to code example.
Java 16
- Record Classes
- Streams toList()
- Streams mapMulti()
- Pattern matching for instanceof
- Switch Expressions (yield)