1.Arrays.sort(int[] a) 整个数组进行排序
2.Arrays.sort(int[] a, int fromIndex, int toIndex) 部分数组进行排序(a数组下标从fromIndex->toIndex-1进行排序)
3.Arrays.sort(T[] a, Comparator<? Super T> c)用Comparator接口实现自定义排序规则
1.Arrays.sort(int[] a) 整个数组进行排序
2.Arrays.sort(int[] a, int fromIndex, int toIndex) 部分数组进行排序(a数组下标从fromIndex->toIndex-1进行排序)
3.Arrays.sort(T[] a, Comparator<? Super T> c)用Comparator接口实现自定义排序规则