You are viewing a single comment's thread. Return to all comments →
You can also do this in functional style
Map<String, Long> magWords = Arrays.stream(magazine) .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
Seems like cookies are disabled on this browser, please enable them to open this website
Hash Tables: Ransom Note
You are viewing a single comment's thread. Return to all comments →
You can also do this in functional style