ArrayList add Quiz

public class ArrayList<E> implements List<E> {
  /** Holds the items in the list. */
  private E[] data;
  /** The size of the list. */
  private int size;

  public E add(E item) {
    // Your code goes here.
  }
}

The method must add the item to the end of the list. You can assume that there is room to add the item (size < data.length).

Time remaining: