This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.