The comparable interface declares one method called compareTo(). It returns -1,0, or 1 depending whether the current object is less than, equal to or greater than the one passed to the method. Check the API for more details.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Joined: May 15, 2002
BTW, Strings already implement Comparable, so you really don't need to do anything. Just stick the String objects in your ArrayList and call Collections.sort().