import java.text.Collator; import java.util.Locale; public class Main { public static void main(String[] argv) throws Exception { Collator collator = Collator.getInstance(Locale.CANADA); String aString1 = ""; String aString2 = ""; int compare = collator.compare(aString1, aString2); if (compare < 0) { // aString1 < aString2 } else if (compare > 1) { // aString1 > aString2 } else { // aString1 = aString2 } } }