摘要:
List声明 List<E> list = new ArrayList<>(); E 指元素类型 List常见方法 返回类型 方法名 作用 boolean contains(Value) 列表中存在Value则返回true,否则false boolean add(Value) 添加进列表末尾 E g 阅读全文
摘要:
使用lambda表达式 Collections.sort(List, (a,b) -> x1 - x2); 自定义Comparator方法 Collections.sort(List, new Comparator<E>(){ public int compare(int a, int b){ re 阅读全文