I need to generate a Tree Structute. The Structure is some thing like this.
Is this structure possible to be created in java using either TreeMap or TreeSet, if no, then how could something like this be made possible.
This tree structure displayed is not for display purpose.
Hope to hear a solution soon
Ya as mentioned the situation could be made possible with an n-array structure.
What stops me from using it?
I wanted to know if it could be done using TreeMap/TreeSet so that i can take advantage of the sun api. I need the data structured in a tree format for looking up data and retriving the same based on their unique identity in the system and not on index.
Any ways i got a way around with TreeMap with little bit of modifications.
No, TreeSet and TreeMap are SortedSet and SortedMap classes that happen to be *implemented* using trees. They are not general-purpose classes for implementing a tree. Implementing an n-ary tree is not difficult, though. In fact, it's trivial. What's giving you difficulty?
[ May 06, 2003: Message edited by: Reshma Pai ]