public interface List extends Iterable { /**Returns the number of elements in this list*/ public int size(); /**Returns whether the list is empty. */ public boolean isEmpty(); /**Returns the element at index i, without removing it*/ public E get(int i) throws IndexOutOfBoundsException; /**Replaces the element at index i with e, returning the previous element at i.*/ public E set(int i, E e) throws IndexOutOfBoundsException; /**Inserts an element e to end of list*/ public void add(E e); /**Inserts an element e to be at index i, shifting all elements after this */ public void add(int i, E e) throws IndexOutOfBoundsException; /**Removes and returns the element at index i, * shifting the elements after this. */ public E remove(int i) throws IndexOutOfBoundsException; ///**Checks to see if element is in list*/ //public boolean inList(E e); }