In this repo, you will find some examples of how to use Java 21 new features.
These are the JEPs (Java Enhancement Proposals) that are part of Project Amber demonstrated in the examples:
- 430: String Templates (Preview)
- 431: Sequenced Collections
- 440: Record Patterns
- 441: Pattern Matching for switch
- 443: Unnamed Patterns and Variables (Preview)
- 445: Unnamed Classes and Instance Main Methods (Preview)
Coming soon