Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaCollectors toMap groupingBySingle-choice MCQ

Given a stream of words, which call counts occurrences into a Map<String, Long>?

Stream<String> words = Stream.of("a", "b", "a", "c", "a");