ArrayList<String> 类型排序
可以使用Collections.sort():
ArrayList<String> testArr = new ArrayList<>();
Collections.sort(testArr);
ArrayList<String> 类型排序
可以使用Collections.sort():
ArrayList<String> testArr = new ArrayList<>();
Collections.sort(testArr);