public class ABD {
public static void main(String[] args) {
//Collator类是用来执行区分语言环境的String比较的,这里是选择CHINA
Comparator comparator = Collator.getInstance(Locale.CHINA);
String[] a = {"乔飞", "687","乔巴", "路飞","Cat", "张无忌", "cat","小龙女", "123","史蒂芬","HeHe"};
//使根据指定比较器产生的顺序对指定对象数组进行排序
Arrays.sort(a, comparator);
for (int i = 0; i < a.length; i++) {
System.out.println(a[i]);
}
}
}