Is anyone aware of a generic tree (nodes may have multiple children) implementation for Java? It should come from a well trusted source and must be fully tested.
There isn't a Tree class in the Collections libraries. However, there is one in the Swing Frameworks. DefaultTreeModel
I have used this in the past and it works well. It does pull in additional classes into your application though which may or may not be desirable.
You can also simulate a Tree using another collection and storing collections in it. Eg. List of Lists.