Skip to content

Java / Advanced · Free and public

Advanced Java in 7 Days

Build a tested expense ledger with modern value models, exact decimals, atomic imports and canonical exports.

Start Day 1 →

Build on what you know

Prerequisites: Java intermediate, or equivalent skill with immutable classes, interfaces, maps, generics, lambdas, streams and regression tests. Day 1 introduces records, Optional and sealed results before later lessons use them.

30 lessons across seven days. Allow about 90 minutes of active study per day. Predict results, trace state, change inputs and complete the checkpoint before opening its solution. These are estimates, not measured completion times; split a day over several sessions freely. Delayed review is extra.

All lessons are public. Examples run in code-playpad 0.6.0, a documented Java 25 subset. Programs start fresh on each run. Input is supplied before Run. No account or installation is needed for the core course. Imports use in-memory readers. Actual threads, file adapters, databases and JVM benchmarking are separate local next steps; the version-check lesson is a sequential model.

Completion is saved in this browser separately from other courses. Editor drafts are not automatically saved: copy your work before leaving. Download the complete expense ledger and tests for optional local JDK work.

Practice in three passes

Predict and trace an example, repair a plausible mistake, then build the day's independent task. Try the debugging workspace before opening its hints. Use the checkpoint's acceptance cases to choose tests, then recreate the central operation from memory.

Allow about 90 minutes per day for the expanded practice, or split a day into shorter sessions. Finish the checkpoint before continuing; review challenges on Day 7 are extra practice for a later date.

Day 1 · About 90 minutes

Values & Outcomes

Model immutable values, ordinary absence and explicit result alternatives.

  1. Records & Ownership 20 min · Read, predict, build and test
  2. Optional Results 25 min · Read, predict, build and test
  3. Sealed Results & Switch 20 min · Read, predict, build and test
  4. Checkpoint: Typed Lookup 25 min · Independent practice

Day 2 · About 90 minutes

Exact Decimal Reports

Choose precision, rounding and equality rules and test exact totals.

  1. BigDecimal & Rounding 20 min · Read, predict, build and test
  2. Decimal Value Contracts 25 min · Read, predict, build and test
  3. Reductions & Totals 20 min · Read, predict, build and test
  4. Checkpoint: Invoice Total 25 min · Independent practice

Day 3 · About 90 minutes

Collections & Algorithms

Group data, choose indexes and queues, and define deterministic reports.

  1. Grouping & Duplicate Keys 20 min · Read, predict, build and test
  2. Indexes & Complexity 20 min · Read, predict, build and test
  3. Queues & Work Order 25 min · Read, predict, build and test
  4. Checkpoint: Catalog Report 25 min · Independent practice

Day 4 · About 90 minutes

Safe State Changes

Stage atomic batches, handle retries and reason about stale updates.

  1. Pure Decisions & Effects 20 min · Read, predict, build and test
  2. Atomic Batches 25 min · Read, predict, build and test
  3. Retries & Version Checks 20 min · Read, predict, build and test
  4. Checkpoint: Safe Batch 25 min · Independent practice

Day 5 · About 90 minutes

Import & Export Boundaries

Validate bounded text, preserve useful errors and produce canonical output.

  1. Parsing as a Boundary 20 min · Read, predict, build and test
  2. Bounded Readers 20 min · Read, predict, build and test
  3. Deterministic Exports 25 min · Read, predict, build and test
  4. Checkpoint: Import Preview 25 min · Independent practice

Day 6 · About 90 minutes

Testing the Guarantees

Combine case tables, seeded properties, reference oracles and mutation tests.

  1. Table-Driven Tests 20 min · Read, predict, build and test
  2. Properties & Seeded Cases 25 min · Read, predict, build and test
  3. Mutation Tests & Failure Evidence 20 min · Read, predict, build and test
  4. Checkpoint: Report Oracle 25 min · Independent practice

Day 7 · About 90 minutes

Build an Expense Ledger

Test a complete multi-file application, extend it and solve an independent inventory brief.

  1. Expense Ledger 20 min · Read, predict, build and test
  2. Ledger Contract Tests 15 min · Read, predict, build and test
  3. Category Reports 15 min · Read, predict, build and test
  4. Run on a Real JDK 10 min · Read, predict, build and test
  5. On Your Own: Inventory 30 min · Independent practice
  6. Come Back Later 20 min · Return later · extra review