Comparator comp = Collator.getInstance(java.util.Locale.CHINA);
String[] strs = {"deng","jason","cbynietg","张三", "李四", "王五", "朱六","卓七"};
// 用指定比较器产生的顺序对指定对象数组进行排序。
Arrays.sort(strs, comp);
JAVA汉字排序
最新推荐文章于 2024-07-29 17:13:57 发布