public static void main(String[] args) {
String[] names = { "曹操", "项羽", "刘备", "李振", "张飞", "刘威" };
Arrays.sort(names, Collator.getInstance(java.util.Locale.CHINA));// 升序;
System.out.println(Arrays.toString(names));
}
输出:
[曹操, 李振, 刘备, 刘威, 项羽, 张飞]