map.putAll()用法
map.putAll()用法public static void main(String[] args) { Map map= new HashMap(); map.put(1, "A"); Map map1 =new HashMap(); map1.put(2, "B"); map1.put(3, "C"); map.putAll(map1); System.out.println(map); Map map2= new HashMap(); map2.put(2,
原创
2021-04-27 16:31:02 ·
533 阅读 ·
0 评论