I have several problems with this. I have one ArrayList. I searched for several days and I can not find the answer anywhere:
private List<FamilyTree> Tree;
I can add a new Treesin arraythe following way:
FamilyTree Generation = new FamilyTree();
Generation.add(new Tree());
I basically want to be able to move between generations. So, for example, I add a new Person to the tree
Generation.add(new Person(height, hair colour, eyes));
Then I decide, I want to add another person to the previous generation. That is, for ArrayListcontaining the current ArrayList(not this one).
I'm not sure that I am explaining my problem well, so here is a diagram:
/ \ | |
-Jon--Sunny---Cassie--Milo---
/ | \
Ron-Kim-Guy
, ArrayList , , . Arraylist(s). , , ??