// Hunter Schafer, CSE 143 // This class represents a list of integers public class ArrayIntList { private int[] elementData; private int size; // constructs an empty ArrayIntList public ArrayIntList() { elementData = new int[10]; size = 0; } // adds the given number n to the end of the list public void add(int n) { this.elementData[size] = n; this.size++; } }