void main() {
    ArrayList<Integer> scores = new ArrayList<>(List.of(88, 92, 45, 95, 58, 71));
    ArrayList<Integer> passing = new ArrayList<>();

    for (int score : scores) {
        if (score >= 60) {
            passing.add(score);
        }
    }

    IO.println(passing.size() + " of " + scores.size() + " passed: " + passing);
}

// From Groundwork, chapter 7 (ch07-arrays-and-lists), box 20.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch07_20.java
