Challenge 1: A Two-Line Greeting Program — Possible Solution ==================================================================== Greeting.java: public class Greeting { public static void main(String[] args) { System.out.println("Hello there!"); System.out.println("Welcome to Java."); } } $ javac Greeting.java $ java Greeting Output: Hello there! Welcome to Java. WHY THIS WORKS AS AN ANSWER ------------------------------ The public class is named Greeting, matching the filename Greeting.java exactly, per the chapter's own compiler-enforced rule. Two separate System.out.println calls each print their own line, and javac/java follow the chapter's own two-step compile-then-run-on-a-VM workflow.