class ListOfInts { private int [] theList; private int numElements; private static final int maxListSize = 40; public ListOfInts() { theList = new int[maxListSize]; numElements = 0; } // Precondition: numElements < maxListSize public void addInt (int mark) { numElements++; theList[numElements-1] = mark; // Why -1 ? } public float average () { int sum = 0; for (int i=0; i