Hi all,
Thank you all for having this group.
I am new to the world of java.
I want to write a java program were the strings are stored in a
tree (not binary tree).
For example
1) "APPLE" -> "RED"
2) "APPLE" -> "WHITE"
3) "APPLE" -> "USA" ->"RED"
4)"APPLE" -> "USA" -> "WHITE"
5) "APPLE" -> "USA" -> "NYC" -> "RED" ............soon
So APPLE will have 3 child nodes (RED,WHITE,USA). Child node USA will
have 3 child nodes (RED,WHITE,NYC) , NYC has RED ......soon.
If not tree any other method that i can achieve this?
Thanks in advance.
sanny.
Andrey Kuznetsov - 28 Dec 2005 02:13 GMT
> Thank you all for having this group.
> I am new to the world of java.
[quoted text clipped - 11 lines]
>
> If not tree any other method that i can achieve this?
see TreeModel, DefaultTreeModel and JTree

Signature
Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities