java中的Collections.sort(list, Collator.getInstance(java.util.Locale.CHINA))是什么意思
1.对于数组的排序方法如下:String[] names = {"王林", "杨宝", "李镇", "刘迪", "刘波"}; Arrays.sort(names, com.ibm.icu.text.Collator.getInstance(com.ibm.icu.util.ULocale.SIMPLIFIED_CHINESE));//升序; System.out.println(Array...
原创
2018-05-23 15:43:38 ·
6082 阅读 ·
1 评论