×

java · level 1 · unit 1 · lesson 4

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

An is a clue, not a disaster.

An error is Java saying it got stuck. Everyone gets them, even experts. Before running anything, Java tries to your program, which means checking every line. If one line is wrong, nothing runs at all.

The message names the line and the problem. ';' expected means a semicolon is missing. means Java met a name it does not know, often because of a typo.

Java is , so capitals matter. System with a capital S works. Println with a capital P is a stranger, a symbol Java cannot find.

The message tells you which line to look at, so start your search there.