title: Does Java have a multiset data structure like the one in C++ STL?
body: <p>I need a data structure which works like the STL multiset but the TreeSet in Java doesn't allow duplicate elements. Is there any built-in data structure in Java which is equivalent to multiset? </p>