Skip to content

Magwerste/FamilyTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FamilyTree

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).

Features

  • Add children to the ancestor/partner couple
  • Display the family tree
  • Enforces unique child names (case insensitive)

Requirements

  • Java (JDK 8 or later)

Build and run

From the project root:

javac -d out src/*.java
java -cp out FamilyTreeTest

Then follow the menu prompts:

  1. Enter the ancestor and partner names
  2. Choose menu options to add children or display the tree
  3. Select quit to exit

Project structure

  • src/FamilyTree.java - the tree and node classes plus tree operations
  • src/FamilyTreeTest.java - console menu for interacting with the tree

Notes

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.

About

Data Structures & Algorithms (Java)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages