一、sort()函数
Arrays.sort("数组名") Arrays.sort("数组名","起始下标","终止下标") Arrays.sort("数组名","起始下标","终止下标","自定义排序函数")
二、ArrayList排序
ArrayList<Interger> list=new ArrayList<>(); Collections.sort(list)