Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Map<Character, Long> groupedCharacter = message.chars()
- .mapToObj(Character::valueOf)
- .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement