Hi all,
How can i do a recursive set where one object contains
many of the same object that can go any number of
levels down?
class Person{
  String name;
  List personList = new ArrayList();

  public void addPerson(Person p){
    personList.add(p);
  }
<root>
  <person name="bob">
    <person name="joe"/>
    <person name="sue">
      <person name="billy">
        ...
      </person>
    </person
  </person>
</root>

Thanks so much,
Steve


                
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to