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
相關文章
相關標籤/搜索