aamit01
05/30/2016, 10:17 PMMap<String, Long> collect =
wordsList.stream().collect(groupingBy(Function.identity(), counting()));
? I can think of w1.split(" ").groupBy { it }.mapValues { it.component2().size }
but seems wasteful to make list and then just thrwo it away