Skip to main content

Practice ยท 4 of 4

Predict the output, then prove it

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.

Difficulty: beginner

Back to lesson: Practice: Practice: First Programs