8.7.13.int compareTo(String otherString) Performs a lexical comparison
less than 0 if the current string is less than otherString,
equal to 0 if the strings are identical,
greater than 0 if the current string is greater than otherString.
public class MainClass { public static void main(String[] argv) {
String s = "a";
String t = "t";
System.out.println(s.compareTo(t));
}
}