Hi Chris,
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.
Thanks
reshma
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 ]