String s1 = \"Project\"; String s2 = \"Sunject\";
I want to compare the two above string by their alphabetic order (which in this case \"Project\"
String a = "..."; String b = "..."; int compare = a.compareTo(b); if (compare < 0) { //a is smaller } else if (compare > 0) { //a is larger } else { //a is equal to b }