ArrayList Practice Quiz

Practice Problem

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(int index, E item) {
    // your code here.
  }
}

Time Remaining:

You can restart the timer by reloading the page.

Try to complete the problem in 20 minutes.

If you cannot complete the program in 20 minutes, you can watch me solve the problem in a text editor.