// CSE 143, Winter 2011, Marty Stepp // // A class that implements the IntList interface stores a list of integers. // The interface just specifies the methods that a list must have, // not how they are implemented (that is up to the class authors). // // Clients can declare variables and parameters of type IntList // so that the same code can interact with any type of list. // This idea is called polymorphism. public interface IntList { public void add(int value); public void add(int index, int value); public void clear(); public int get(int index); public int indexOf(int value); public boolean isEmpty(); public void remove(int index); public void set(int index, int value); public int size(); }