Did you double check your syntax prior to this line? Actually, are you returning a String or an int or something else with this method? I looked at compareTo() in the String class, and didn't find a method with this signature. The other place I checked didn't have a method with this signature, either. [ July 27, 2008: Message edited by: Carol Murphy ]
Joined: Jun 17, 2008
I am returning int.
intcompareTo(String anotherString) Compares two strings lexicographically.