public class Solution { public static void main(String[] args) { Human grandmother1 = new Human("Маша", false,70, mother); Human grandmother2 = new Human("Вика", false,80, father); Human grandfather1 = new Human("Саша", true, 90, mother); Human grandfather2 = new Human("Петя", true, 100, father); Human mother = new Human("Валя", false, 45, children); Hunan father = new Human("Женя", true, 45, children); ArrayList<Human> children = new ArrayList<Human>(); children.add(new Human("Соня", false, 20)); children.add(new Human("Федор", true, 20)); children.add(new Human("Вася", true, 20)); System.out.println(text); } public class Human { String name; boolean sex; int age; 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 = new ArrayList<Human>(); } public Human (String name; boolean sex; int age) { this.name = name; this.sex = sex; this.age = age; } }