code: public int[] toIntegerArray() {
      int[] copy = new int[size];
      for (int i = 0; i < size; i++) {
        copy[i] = elements[i];
      }
      return copy;
    }
docs: Converts this <code>IntegerArray</code> to an array of ints.
  
  @return An array of ints containing the same elements as this array.