Java集合主要是由两大接口派生出来的,包括Collection和Map。
对于Map,经常忘记的遍历方法:
public Set<K> KeySet();
public Set<Map.Entry<K,V>> entrySet();
for(Map.Entry<String,List> entry:map.entrySet()){
System.out.println(entry.getKey());
System.out.println(entry.getValue());
}