/** * A list interface, as described in the lab manual */ public interface List { // Default maximum list size - a constant // List manipulation operations public void insert(Object newElement); // Inserts Object after cursor public void remove(); //Remove element at cursor public void replace (Object newElement); //Replace element at cursor public void clear(); //remove all elements from list //list status operations public boolean isEmpty(); //returns true if the list is empty public boolean isFull(); //returns true if the list is full public void goToBeginning(); //moves the cursor to the beginning of the list public void goToEnd(); //moves cursor to the end of the list public void goToNext(); //move cursor to the next element in the list public void goToPrior(); //move the cursor to preceding element public Object getCursor(); //get the element at the cursor public void showStructure(); //output the elements in the list, for debugging purposes }