On my Android app I'm using Multiset
:
Multiset<String> multiset = HashMultiset.create();
I want to convert it to a String using toString()
method. The problem is that when it's a single item from every String then it looks OK, but when there are multiple strings with the same text, it is shown as []
instead of [A x 2, B, C x 3]
for example.
How can I fix this so it will be shown as above instead of []
?