type
status
date
slug
summary
tags
category
icon
password
1.集合框架图


2.Collection的方法
int size();
boolean isEmpty();
boolean contains(Object o);
boolean add(E e);
boolean remove(Object o);
boolean containsAll(Collection<?> c);
boolean addAll(Collection<? extends E> c);
boolean removeAll(Collection<?> c);
void clear();
3.集合的遍历
3.1 Iterator
3.2增强for循环
for(遍历对象的类型 遍历变量:要遍历集合的名称)
增强for循环的底层仍然是Iterator迭代器