void main() {
    String name = IO.readln("Your name (or press Enter to skip): ").strip();

    if (!name.isEmpty()) {
        IO.println("Hello, " + name + ".");
    } else {
        IO.println("Hello, stranger.");
    }
}

// From Groundwork, chapter 4 (ch04-making-decisions), box 10.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch04_10.java
