A small Java console program written as practice for a university Data Structures and Algorithms module. This is version 1.
It models a basic family tree using a linked node structure: an ancestor and their partner, with children stored as a linked list of siblings (first child / next sibling representation).
- Add children to the ancestor/partner couple
- Display the family tree
- Enforces unique child names (case insensitive)
- Java (JDK 8 or later)
From the project root:
javac -d out src/*.java
java -cp out FamilyTreeTest
Then follow the menu prompts:
- Enter the ancestor and partner names
- Choose menu options to add children or display the tree
- Select quit to exit
src/FamilyTree.java- the tree and node classes plus tree operationssrc/FamilyTreeTest.java- console menu for interacting with the tree
This project was built for learning purposes and is intentionally simple. Partner links on child nodes are present but unused, left in place for a planned second iteration.