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

    for (Map.Entry<String, Integer> entry : scores.entrySet()) {
        IO.println(entry.getKey() + " scored " + entry.getValue());
    }
}

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