')' expected:
Solution.java, line: 10, column: 44
not a statement:
Solution.java, line: 10, column: 46
not a statement:
Solution.java, line: 10, column: 52
';' expected:
Solution.java, line: 10, column: 54
')' expected:
Solution.java, line: 11, column: 45
not a statement:
Solution.java, line: 11, column: 47
not a statement:
Solution.java, line: 11, column: 54
';' expected:
Solution.java, line: 11, column: 56
')' expected:
Solution.java, line: 12, column: 39
not a statement:
Solution.java, line: 12, column: 41
not a statement:
Solution.java, line: 12, column: 47
not a statement:
Solution.java, line: 12, column: 51
not a statement:
Solution.java, line: 12, column: 64
';' expected:
Solution.java, line: 12, column: 75
')' expected:
Solution.java, line: 13, column: 42
not a statement:
Solution.java, line: 13, column: 44
not a statement:
Solution.java, line: 13, column: 51
not a statement:
Solution.java, line: 13, column: 55
not a statement:
Solution.java, line: 13, column: 68
';' expected:
Solution.java, line: 13, column: 79
')' expected:
Solution.java, line: 14, column: 40
not a statement:
Solution.java, line: 14, column: 42
not a statement:
Solution.java, line: 14, column: 48
not a statement:
Solution.java, line: 14, column: 52
not a statement:
Solution.java, line: 14, column: 60
';' expected:
Solution.java, line: 14, column: 66
')' expected:
Solution.java, line: 15, column: 42
not a statement:
Solution.java, line: 15, column: 44
not a statement:
Solution.java, line: 15, column: 51
not a statement:
Solution.java, line: 15, column: 55
not a statement:
Solution.java, line: 15, column: 63
';' expected:
Solution.java, line: 15, column: 69
')' expected:
Solution.java, line: 16, column: 37
not a statement:
Solution.java, line: 16, column: 39
not a statement:
Solution.java, line: 16, column: 45
not a statement:
Solution.java, line: 16, column: 49
not a statement:
Solution.java, line: 16, column: 57
';' expected:
Solution.java, line: 16, column: 63
')' expected:
Solution.java, line: 35, column: 34
';' expected:
Solution.java, line: 35, column: 56
')' expected:
Solution.java, line: 41, column: 34
';' expected:
Solution.java, line: 41, column: 84
package com.javarush.task.task07.task0724;
/*
Семейная перепись
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
}
public static class Human {
//напишите тут ваш код
String name;
boolean sex;
int age;
Human father;
Human mother;
public String toString() {
String text = "";
text += "Имя: " + this.name;
text += ", пол: " + (this.sex ? "мужской" : "женский");
text += ", возраст: " + this.age;
if (this.father != null)
text += ", отец: " + this.father.name;
if (this.mother != null)
text += ", мать: " + this.mother.name;
return text;
}
}
}