hm... trees?!
never used them before.
Can i use the tree nodes on an object?
If i got it right, many of the data will be repeated for each city.
for example having a pediatric in London and in Berlin would look something like that:
London Berlin
| \ |
Doctor ..... Doctor
| |
Pediatric Pediatric
| |
Dr A Dr B
In this case both "Doctor" and "Pediatric" are repeated for both cities. Did i understand this right?
i will have to create a new tree, having 2 attributes, its name and its parent name.
So, it will be something like
Class Tree(){....}
ArrayList<Tree> tree;
tree.add("London");
tree.add("Berlin");
tree.add("Doctor","London");
tree.add("Doctor","Berlin");
but how would i add a pediatric to the Londons doctor branch and not to the berlin branch?
Could you give me some sample code please?
Thanks for the info, at least i have something else to work with now.
ilias