@Test void test(){ Map testMap = new HashMap(); IntStream.rangeClosed(0, 10).forEach(i -> testMap.put(String.valueOf(i) , i)); // 방법 1 String key = ""; for (String s : testMap.keySet()) { key = s; System.out.println(key + ":" + testMap.get(key)); } System.out.println("-------"); // 방법 2 testMap.forEach((k, v) -> System.out.println(k + ":" + v)); System.out.println("-------"); // 방법 3 testMap.ent..