Skip to content

Java / Beginner · Free and public

Learn Java in 7 Days

From your first message to a tested application with several source files. Read clear code, predict what it does, then write programs of your own.

Start your first lesson →

Start from zero. Build something useful.

No Python, JavaScript, account or installation required. Java and JavaScript are different languages. This path introduces each concept before asking you to use it independently.

36 lessons across seven modules. Allow about 80–90 minutes of active study per day, with extra time if you need it. Predict, run, change and explain each example; do the daily checkpoint before reading its solution. These are author estimates, not measured completion times. Split days across sessions freely.

Programs run in your browser using code-playpad 0.6.0, which implements a documented subset of Java 25. The course uses classic Main/main programs, supported library classes and flat source files. Each editor starts fresh. Input is supplied in the input box before Run; Java does not pause to wait for new answers here.

The final project runs in the browser and is downloadable for a real JDK. Local installation is optional. There is no file persistence, network service or account data in the Java project. Completion is saved in this browser only; it does not measure mastery.

Official Java learning resources · Playground documentation and compatibility

Comfortable with the final project? Continue with Java intermediate →

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 80–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

Your First Programs

Run Java, name values and explain numbers and text.

  1. Hello, Java 15 min · Read, predict and practice
  2. Variables & Types 20 min · Read, predict and practice
  3. Numbers & Arithmetic 15 min · Read, predict and practice
  4. Strings & Messages 20 min · Read, predict and practice
  5. Checkpoint: Study Budget 20 min · Independent checkpoint

Day 2 · About 90 minutes

Decisions & Loops

Choose branches and trace bounded repetition.

  1. if / else if / else 15 min · Read, predict and practice
  2. Boolean Logic 20 min · Read, predict and practice
  3. for Loops 20 min · Read, predict and practice
  4. while Loops 15 min · Read, predict and practice
  5. Checkpoint: Weekly Goal 20 min · Independent checkpoint

Day 3 · About 90 minutes

Methods & Small Checks

Break a problem into methods and verify their results.

  1. Methods 15 min · Read, predict and practice
  2. Parameters & Arguments 15 min · Read, predict and practice
  3. Return Values 20 min · Read, predict and practice
  4. Scope & Small Checks 20 min · Read, predict and practice
  5. Checkpoint: Session Pricing 20 min · Independent checkpoint

Day 4 · About 90 minutes

Arrays & Lists

Store, traverse and summarize groups of values.

  1. Arrays & Indexes 15 min · Read, predict and practice
  2. Array Loops 20 min · Read, predict and practice
  3. ArrayList 15 min · Read, predict and practice
  4. String Tools & Equality 20 min · Read, predict and practice
  5. Checkpoint: Plan Summary 20 min · Independent checkpoint

Day 5 · About 90 minutes

Objects & Source Files

Model independent objects and connect classes in separate files.

  1. Classes & Objects 15 min · Read, predict and practice
  2. Constructors & this 20 min · Read, predict and practice
  3. Private State & Methods 20 min · Read, predict and practice
  4. Multiple Source Files 15 min · Read, predict and practice
  5. Checkpoint: Session State 20 min · Independent checkpoint

Day 6 · About 90 minutes

Input, Validation & Errors

Read input, reject invalid values and test recovery.

  1. Scanner & Standard Input 15 min · Read, predict and practice
  2. Validation & Parsing 15 min · Read, predict and practice
  3. Exceptions & Recovery 20 min · Read, predict and practice
  4. Tests & Regression Checks 20 min · Read, predict and practice
  5. Checkpoint: Input Recovery 20 min · Independent checkpoint

Day 7 · About 80 minutes

Build a Study Planner

Run, test and extend a complete multi-file Java application.

  1. Study Planner 15 min · Read, predict and practice
  2. Project Tests 15 min · Read, predict and practice
  3. Run Java Locally 15 min · Read, predict and practice
  4. Extend the Planner 15 min · Read, predict and practice
  5. On Your Own: Reading Tracker 20 min · Independent checkpoint
  6. Come Back Later 25 min · Come back in a few days · extra review