Take out a piece of paper. We’ll be programming on paper.
public class ArrayList<E> implements List211<E> {
/** Holds the items in the list. */
private E[] data;
/** The size of the list. */
private int size;
// Your code goes here.
}Answer the following questions:
When do you need to resize data?
Why do we keep track of size?