removeAll 疑问
// Course[] cr3 = {new Course("3","离散数学"),new Course("4","JAVA语言")}; Course[] cr3 = {(Course) coursesToSelect.get(3),(Course) coursesToSelect.get(5)}; coursesToSelect.removeAll(Arrays.asList(cr3)); 请问下用上面一行的方式删除为什么不能删除成功???谢谢!
// Course[] cr3 = {new Course("3","离散数学"),new Course("4","JAVA语言")}; Course[] cr3 = {(Course) coursesToSelect.get(3),(Course) coursesToSelect.get(5)}; coursesToSelect.removeAll(Arrays.asList(cr3)); 请问下用上面一行的方式删除为什么不能删除成功???谢谢!
2017-08-31
举报