public List<Object> sortByName(List<String> name){
Comparator<Object> cmp = Collator.getInstance(Locale.CHINESE);
Object[] nameArr =name.toArray();
Arrays.sort(nameArr,cmp);
return Arrays.asList(nameArr);
}
java实现姓名按首字母排序
最新推荐文章于 2024-07-25 17:40:13 发布