JAVA 集合 删除元素
原文:https://www.iteye.com/blog/czj4451-1474047
若需要删除,则需要修改指针位置
错误代码
//创建集合对象
Collection<Student> c = new ArrayList<>();
Student s1 = new Student("林青霞",2);
Student s2 = new Student("看八字",22);
Student s3 = new Stude
原创
2020-07-07 18:44:57 ·
144 阅读 ·
0 评论