package java.util; public interface List extends Collection { void add(int index, Object element) throws RuntimeException, ClassCastException, IllegalArgumentException, IndexOutOfBoundsException; boolean addAll(int index, Collection c) throws RuntimeException, ClassCastException, IllegalArgumentException, IndexOutOfBoundsException; Object get(int index) throws IndexOutOfBoundsException; int indexOf(Object o); int lastIndexOf(Object o); ListIterator listIterator(); ListIterator listIterator(int index) throws IndexOutOfBoundsException; Object remove(int index) throws RuntimeException, IndexOutOfBoundsException; Object set(int index, Object element) throws RuntimeException, ClassCastException, IllegalArgumentException, IndexOutOfBoundsException; List subList(int fromIndex, int toIndex) throws IndexOutOfBoundsException; }