void main() {
    Map<String, Integer> scores = new LinkedHashMap<>();
    scores.put("Ada", 88);

    if (scores.containsKey("Grace")) {
        IO.println(scores.get("Grace"));
    } else {
        IO.println("No score recorded.");
    }

    IO.println(scores.getOrDefault("Grace", 0));
}

// From Groundwork, chapter 9 (ch09-maps-and-sets), box 4.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch09_04.java
