Skip to main content

Practice · 4 of 4

Predict the output, then prove it

CHALLENGE
Difficulty: beginner+25 XP

Before running anything, write on paper what this prints: ``java System.out.println("A"); System.out.print("B"); System.out.print("C"); System.out.println("D"); System.out.println("E"); ` Then implement main` so the program produces EXACTLY that output — no extra blank lines, no trailing spaces.

Back to lesson: Practice: Practice: First Programs