java对于汉字的首字母排序,遇到生僻字时,不要使用Collator.getInstance(java.util.Locale.CHINESE),而要用com.ibm.icu.util.ULocale
1.对于数组的排序方法如下:String[]names={"王林","杨宝","李镇","刘迪","刘波"};Arrays.sort(names,com.ibm.icu.text.Collator.getInstance(com.ibm.icu.util.ULocale.SIMPLIFIED_CHINESE));//升序;System.out.println(Arrays.toString(nam