Joe Soltzberg

50%
Flag icon
 try (Stream<String> words = Files.lines(dictionary)) {          words.collect(groupingBy(word -> alphabetize(word)))            .values().stream()            .filter(group -> group.size() >= minGroupSize)            .forEach(g -> System.out.println(g.size() + ": " + g));       }
Joe Soltzberg
This is how it should be done
Effective Java
Rate this book
Clear rating
Open Preview