Collection方法
Collection ct= new ArrayList();
//添加元素:boolean add(Object e)
ct.add(10); //装箱装入内存地址,Integer i = new Integer(10);
//获取集合中元素个数:int size()
System.out.println(ct.size());
//清空集合: void clear()
ct.clear();
//判断集合是否有指定元素: boolean contanis(Object o)
boolean boo = ct.contains("10");//true
//删除集合元素:boolean remove(Object o)
ct.remove