摘要: 1 package cn.arraylist.com; 2 3 import java.util.ArrayList; 4 import java.util.Iterator; 5 6 public class ArrayListDemo2 { 7 8 public static void main(String[] args) { 9 // TO... 阅读全文
posted @ 2018-07-16 11:45 BiuBiu丶 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1 package cn.arraylist.com; 2 3 import java.util.ArrayList; 4 import java.util.Iterator; 5 /* 6 * 集合去除相同元素原理:用集合和空集合对比,遍历集合>>如果空集合中没有有当前元素,则把当前元素添加到空集合中, 7 * 最后遍历新集合 8 */ 9 public class ... 阅读全文
posted @ 2018-07-16 10:52 BiuBiu丶 阅读(253) 评论(0) 推荐(0) 编辑