public static void main(String[] args) {// 循环遍历Map的4中方法Map<Integer, Integer> map = new HashMap<Integer, Integer>();map.put(1, 2);// 1. entrySet遍历,在键和值都需要时使用(最常用)for (Map.Entry<Integer, Integer> entry : map.en
web开发知识总结
2023-09-17
163 点赞
2 评论
246 浏览