2012年8月1日
摘要: --------- android培训、java培训、期待与您交流! ----------3 练习大集合3.1 CollectionCollection定义了集合框架的共性功能。1,添加add(e);addAll(collection);2,删除remove(e);removeAll(collection);clear();3,判断。contains(e);isEmpty();4,获取iterator();size();5,获取交集。retainAll();6,集合变数组。toArray();1,add方法的参数类型是Object。以便于接收任意类型对象。2,集合中存储的都是对象的引用(地址) 阅读全文
posted @ 2012-08-01 12:52 doublewinwin 阅读(610) 评论(0) 推荐(0) 编辑