Class StringComparable


public class StringComparable
extends comparable

The StringComparable class is an extension of comparable class with the additional property that the list consists of Strings objects. As a result we also need to provide a concrete implementation of the comp method which will overwrite the super class's comp. The source code

Fields inherited from class comparable
Constructor Summary
StringComparable(java.lang.String[] list)
Method Summary
 int comp(java.lang.Object S, java.lang.Object T)
Methods inherited from class comparable
getListItem, setListItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public StringComparable(java.lang.String[] list)
Method Detail


public int comp(java.lang.Object S,
                java.lang.Object T)