Common ArrayList operations
List<Integer> numbers = new ArrayList<>();
numbers.add(5); // append
numbers.set(0, 9); // replace by index
int first = numbers.get(0); // read
boolean has = numbers.contains(9);
add appends, set replaces, get reads, contains tests membership. Removal by value or index is supported. Under the hood the backing array grows by ~50% when full.