// ArrayIntList can be used to store a list of integers. public class ArrayIntList { int[] elementData; // list of integers int size; // current number of elements in the list // Constructs an empty list public ArrayIntList() { elementData = new int[10]; size = 0; } // appends the given value to the end of the list public void add(int value) { elementData[size] = value; size++; } }