HashMap使用

前期准备:首先给hashMap里面put一些键值对,代码以下:code HashMap<Integer, Integer> hashMap = new HashMap<>();                  hashMap.put(5, 2);         hashMap.put(9, 2);         hashMap.put(8, 1);         hashMap.put(7
相关文章
相关标签/搜索