This program model out the Shan family tree so that given a "name" and a "relationship" as input, the output are the people that correspond to the relationship.
Input: Person = Ish; Relation = Brother; Expected Output: Chit, Vich
- Make sure JDK 8 and Maven 3 are installed
git clone https://github.com/johnny-dash/family-tree
cd family-tree
mvn clean install
java -jar target/*.jar
- All the couple are heterosexuality.
- Only when a person get marry, he/she could have children.
In the case that person in the family tree may don't have parent, spouse or the gender is not match with the relationship, the corresponding error will be popped up in the console.
- Paternal Uncle
- Maternal Uncle
- Paternal Aunt
- Maternal Aunt
- Sister In Law
- Brother In Law
- Cousin
- Father
- Mother
- Children
- Son
- Daughter
- Brother
- Sister
- Grand Daughter
- Grand Son