Помогите разобраться в чем ошибка
package com.javarush.task.task08.task0824;
import java.util.ArrayList;
import java.util.List;
/*
Собираем семейство
*/
public class Solution {
public static void main(String[] args) {
ArrayList <Human> generation1=new ArrayList<>();
ArrayList <Human> generation2=new ArrayList <>();
ArrayList <Human> generation3=new ArrayList <>();
generation1.add(new Human("Kostya", true, 70, generation2));
generation1.add(new Human("Sanya", true, 71, generation2));
generation1.add(new Human("Lina", false, 68, generation2));
generation1.add(new Human("Nadja", false, 67, generation2));
generation2.add(new Human("Igor", true, 45, generation3));
generation2.add(new Human("May", false, 43, generation3));
generation3.add(new Human("pavel", true, 13, new ArrayList<>() ));
generation3.add(new Human("sveta", false, 14, new ArrayList<>() ));
generation3.add(new Human("tanja", false, 15, new ArrayList<>() ));
for(int i=0; i<generation1.size();i++){
System.out.println(generation1.get(i));
}
for(int i=0; i<generation2.size();i++){
System.out.println(generation2.get(i));
}
for(int i=0; i<generation3.size();i++){
System.out.println(generation3.get(i));
}
}
public static class Human {
public String name;
public boolean sex;
public int age;
public ArrayList <Human> children;
public Human (String name, boolean sex, int age, ArrayList <Human> children ){
this.name=name;
this.sex=sex;
this.age=age;
this.children=children;
}
/*public Human (String name, boolean sex, int age){
this.name=name;
this.sex=sex;
this.age=age;
}*/
public String toString() {
String text = "";
text += "Имя: " + this.name;
text += ", пол: " + (this.sex ? "мужской" : "женский");
text += ", возраст: " + this.age;
int childCount = this.children.size();
if (childCount > 0) {
text += ", дети: " + this.children.get(0).name;
for (int i = 1; i < childCount; i++) {
Human child = this.children.get(i);
text += ", " + child.name;
}
}
return text;
}
}
}