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.
publicclass MainClass {
publicstaticvoid main(String[] argv) {
String s = "a";
String t = "t";
System.out.println(s.compareTo(t));
}
}