Collection Decision ?

Hi,

I need to implement a tree like child structure as follows :

List

Name

Menu

MenuItem

SubMenuItem

Name

Menu

MenuItem

SubMenuItem

List

Can anbody suggest me with the collection that suits best so that i can implement it as it is

[310 byte] By [texasa] at [2007-11-26 17:49:00]
# 1
structure is like thisList-Name--MenuMenuItem-SubMenuItem-Name--MenuMenuItem-SubMenuItemList
texasa at 2007-7-9 5:01:28 > top of Java-index,Core,Core APIs...
# 2

There isn't enought information here to make useful suggestions. Review this tutorial and maybe it will focus your questions.

http://java.sun.com/docs/books/tutorial/collections/index.html

Remember, any Collections class can contain (be made up of) other Collections classes' elements.

ChuckBinga at 2007-7-9 5:01:28 > top of Java-index,Core,Core APIs...