The end of chapter one from Thinking in Java fourth edition