posted 22 years ago
Tree is an implementation detail. You either need a Set, a List or a Map. Then depending on the requirements you use TreeSet, HashSet etc.
So, if you are using a Set, you can't have duplicate elements. It's doesn't matter whether it is TreeSet or HashSet.
If you want to have duplicate elements, you really need a List. In that case, there is nothing like TreeList.