These are data-structures practice projects I use when tutoring Java. Each exercise comes with:
- starter code to give a student;
- a specification, or requirements written into the starter code;
- a reference solution;
- tests.
The exercises focus on habits that intro courses often skip: validating every user input, keeping classes and methods focused, choosing the right visibility, and working from a library someone else wrote.
| Exercise | Practices | Versions |
|---|---|---|
| Plane seating | 2D arrays, doubly linked lists, interfaces, nested classes, input validation, console menus | basic (single class) and interfaces (shared interface, two data structures) |
Give the student the exercise's starter folder and its specification. They implement the empty methods without changing the provided signatures. The exercise README explains how to compile and run their code. Point them to the tests once they have a working version.
Solutions sit in each exercise's solution folder. Ask students not to open them until they have finished.
Requires JDK 21 or newer and curl.
./build.sh # compile every starter and solution, then run the tests
./build.sh jar # also rebuild the plane-seating library JAR from sourceThe script downloads the JUnit console launcher once into .cache/ and verifies its checksum. Compiled classes go to build/. CI runs the same script on every push.