摘要: 本文将了解java8新特性-foreach 循环List和Map. Map java8前遍历map 1 Map<String, Integer> items = new HashMap<>(); 2 items.put("A", 10); 3 items.put("B", 20); 4 items. 阅读全文