java中文名排序

		String[] names = {"王飞", "赵伟超", "杨豹", "李振", "刘帝", "刘威"};
		Arrays.sort(names, Collator.getInstance(java.util.Locale.CHINA));//升序;
		System.out.println(Arrays.toString(names)); 

你可能感兴趣的:(java中文名排序)