import java.text.Collator;
import java.util.Locale;
public class Main {
public static void main(String args[]) {
String s1 = "é";
String s2 = "f";
Collator frCollator = Collator.getInstance(Locale.FRANCE);
frCollator.setStrength(Collator.CANONICAL_DECOMPOSITION);
if (frCollator.compare(s1, s2) < 0) {
System.out.println("s1 < s2");
}
}
}
//s1 < s2
|