Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text.toLowerCase().chars()
- .boxed()
- .collect(Collectors.groupingBy(k -> k,Collectors.counting()))
- .values().stream()
- .filter(e -> e > 1)
- .count();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement