以前老是会犯一个错误,就是想拿新创建的ListA去复制ListB,但是结果B中的数据一变,A的数据也会跟着改变; ArrayList<String> A =new ArrayList<>; A.addAll(ListB);