import java.util.Iterator; // CSE 143, Summer 2012 //This interface describes all of the methods that a list should have. //This interface extends Iterable so that lists can be used in a for-each loop. public interface List extends Iterable { public void add(E value); public void add(int index, E value); public void remove(int index); public E get(int index); public int size(); public boolean isEmpty(); public Iterator iterator(); public int indexOf(E value); public String toString(); }