How to implement it in java

I need to know that is there a alternative to MultiSet in java?

@unforgettable_pawan

In this article it is written that there is no guaranteed order whereas in c++ it stores the element in sorted order

Hey @unforgettable_pawan
In which line is it written that there is no guaranteed order
I can’t find it

5th line after the Heading. " Duplicates allowed, but no guaranteed order. "

@unforgettable_pawan
Here you go

SortedSet maintains sorted order but it can’t contain duplicate items

@unforgettable_pawan
For that you can use a SortedMap
It can store count as well

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.