⏰ 12 minutes CHALLENGE · VAULT II

🔒 Escape the Syntax: Vault II

You escaped the first vault — but that was the lobby. Vault II has four levels, and each one is harder than the last. A level stays sealed until you beat the one above it. Everything you need, you've already learned: printing, variables, data types, and operators.

LEVEL 1The Double LockACTIVE

Vault I locks had one error each. This lock has two errors in the same line. Fix both at once:

System.out.println(Vault two awaits)
LEVEL 2The Type TrapSEALED

Two variables guard this door, and each one has the wrong relationship with quotation marks. Fix both declarations:

int floors = "12";
String exitSide = West;
LEVEL 3The Trace ChamberSEALED

Nothing is broken here — the code runs perfectly. The lock opens only if you can predict the output without running it. Type EXACTLY what each program prints.

int code = 8;
code = code + 4;
int boost = 2;
code = code * boost;
System.out.println("Code: " + code);
System.out.println(1 + 2 + " keys");
LEVEL 4The Final DoorSEALED

No broken code. No code at all. Write it yourself — two lines:

1) Declare an int named escape holding the value 4055.
2) Print exactly Door code: 4055 — but the door scanner rejects hardcoded digits: the number must come from your variable, not from inside the quotes.

🏆 VAULT II CLEARED — you fixed compound errors, tamed data types, traced like a compiler, and wrote working code from nothing.
Show Mr. Babb your four green levels.
Mr. Babb · AP Computer Science A · Paul Public Charter School