String[] arr = new String[] {"asa","fda","ds","sxc","casdf"};
Arrays.sort(arr);
for (int i = 0; i < arr.length; i++) {
System.out.println(arr[i]);
}
String[] arr = new String[] {"asa","fda","ds","sxc","casdf"};
Arrays.sort(arr);
for (int i = 0; i < arr.length; i++) {
System.out.println(arr[i]);
}
转载于:https://www.cnblogs.com/Qi1007/p/10064893.html