标签:
public class HashMapL {
public static void main(String[] args) {
HashMap<Integer, Integer> hashMap = new HashMap<>();
hashMap.put(null, null); //允许空空键值对
for(int i=0; i<16; i++){
hashMap.put(i, i); //自动装箱
}
}
标签:
原文地址:http://www.cnblogs.com/dolphin007/p/4446110.html