boolean (Map<String, Integer> map) { map.entrySet().stream().m<caret>ap(Map.Entry::getKey).filter(x -> !x.isEmpty()).forEach(System.out::println); map.entrySet().stream().map(Map.Entry::getValue).forEach(System.out::println); map/*1*/.entrySet()/*2*/.stream()./*3*/map(e -> /*4*/e.getKey())/*5*/.forEach(System.out::println); map.entrySet().stream().map(e -> { return e.getValue(); }).forEach(System.out::println); }