A collection of focused Java examples for learning language fundamentals, object-oriented design, collections, streams, concurrency, and modern Java features through Java 21.
- JDK 21
- Maven (or use the included Maven Wrapper)
On Windows:
.\mvnw.cmd clean packageOn macOS or Linux:
./mvnw clean packageEach demo is a small Java class with its own main method. You can open a class in your IDE and run it directly. For example, after building:
java -cp target/classes com.example.example.abstractclass.AbstractClass01BasicsDemoBrowse the topic folders under src/main/java and choose a demo that interests you. Examples are intended to be read and run individually.