CS202 Java-133
String Method compareTo
lWhen comparing objects with ==, the result is true only if both references refer to the same object in memory
lString method compareTo uses a dictionary type comparison of strings and returns
•0 if they have the same letters in the same order
•a negative number if the instance string is less than the string passed as a parameter
•a positive number if the instance string is greater than the string that is passed
l