effective-java-3e-source-code
effective-java-3e-source-code copied to clipboard
Anagrams exercise
On lambdas and streams chapter there is this exercise:
The problem here is that variable words refer to a stream of lines so the program is processing lines not words. I present a solution using flatMap on words where the line is splitted with a regex(I assumed the words are separated in the file with space, comma, tab, point, dash).