void main() {
    ArrayList<String> first = new ArrayList<>(List.of("Ada", "Grace"));
    ArrayList<String> same = first;
    ArrayList<String> copy = new ArrayList<>(first);
    IO.println(first == same);
    IO.println(first == copy);
    IO.println(first.equals(copy));

    int[] x = {1, 2, 3};
    int[] y = Arrays.copyOf(x, x.length);
    IO.println(x == y);
    IO.println(Arrays.equals(x, y));
}

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