I need to generate a unique friend list from a list that can have duplicates by merging all duplicate entries into one object Example - Friends are fetche
Just use the method Collectors.frequency.
Collectors.frequency