import java.util.*;
import java.text.*;
public static void ChinaLocaleSort()
{
Comparator cmp = Collator.getInstance(java.util.Locale.CHINA);
String[] arr ={"啊", "不", "从", "的"};
Arrays.sort(arr, cmp);
for (int i = 0; i < arr.length; i++)
{
System.out.println(arr[i]);
}
}
汉字字符串按照拼音排序
最新推荐文章于 2018-09-16 01:49:38 发布