Write a method named removeOddCount
that accepts a List
of strings as a parameter and removes any element value that occurs an odd number of total times from the list. For example, in the list [a, b, a, c, a, d, d, b, b, b, e, e, b]
, the strings "a"
, "b"
, and "c"
occur an odd number of times (3, 5, 1 times respectively), so your method should change the list to [d, d, e, e]
. Use one Guava Multiset
as auxiliary storage.