Hello. I am looking for an implementation of a Tree or Tree Node class
within Java. I want to create nodes and store data within those nodes
and be able to search on it. All that I've found in the standard Java
libraries is a JTree, which seems to be designed for displaying
hierarchies. I do not want to display a tree. I just want to use the
data structure. Any suggestions?
Thanks!
Eric Sosman - 05 Apr 2005 23:14 GMT
> Hello. I am looking for an implementation of a Tree or Tree Node class
> within Java. I want to create nodes and store data within those nodes
> and be able to search on it. All that I've found in the standard Java
> libraries is a JTree, which seems to be designed for displaying
> hierarchies. I do not want to display a tree. I just want to use the
> data structure. Any suggestions?
The "collections framework" in java.util has what
you're looking for. See also
http://java.sun.com/docs/books/tutorial/collections/index.html

Signature
Eric.Sosman@sun.com
Johan Kütt - 06 Apr 2005 21:44 GMT
I didn't quite get your point, but have you tried db4o? it's a grate way
to store objects. maybe it satisfies your needs also.
http://www.db4o.com
johan
> Hello. I am looking for an implementation of a Tree or Tree Node class
> within Java. I want to create nodes and store data within those nodes
[quoted text clipped - 4 lines]
>
> Thanks!