通过Map.entrySet遍历key和valuefor (Map.Entry<Integer, String> entry : map.entrySet()) { System.out.println("key= " + entry.getKey() + " and value= "+ entry.getValue());}//Map.entry<In
日常总结
2023-10-01
41 点赞
0 评论
62 浏览