boolean (Map<String, Integer> map) { map.keySet().stream().filter(x -> !x.isEmpty()).forEach(System.out::println); map.values().stream().forEach(System.out::println); /*3*/ /*4*/ map/*1*/.keySet()/*2*/.stream()/*5*/.forEach(System.out::println); map.values().stream().forEach(System.out::println); }