Java Code Samples

A collection of Java code samples with explanations that can be accessed on-demand via the code. By humans, for humans.

Try it!

List<Integer> numbers = List.of(1,2,3);

Search for a code sample

Essentials of Java Programming

Get started with Java with a collection of samples that explain the basics.

9 samples

Java Collections Framework

How to use the classes of the Java Collection Framework: lists, maps, etc. With tips and best practices. In development: additional samples coming soon.

9 samples

Introduction to Software Design

The code samples from the book Introduction to Software Design with Java, 2nd edition.

90 samples

Upcoming Samples

We are planning to grow our current series and to add additional series.

More to come