This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
What is your unexpected behaviour? compareTo(String string) in the String class behaves exactly like the equals(Object) method in the same class, the only difference being how it returns that these values are equal.