dsa

Data Structures & Algorithms - Spring 2018
Log | Files | Refs | README

AscendinglyOrderedStringListInterface.java (360B)


      1 package lab8;
      2 
      3 public interface AscendinglyOrderedStringListInterface {
      4     boolean isEmpty();
      5 
      6     int size();
      7 
      8     void add(String item) throws ListIndexOutOfBoundsException;
      9 
     10     String get(int index) throws ListIndexOutOfBoundsException;
     11 
     12     void remove(int index) throws ListIndexOutOfBoundsException;
     13 
     14     int search(String item);
     15 
     16     void clear();
     17 
     18 }