/
Shcod
/
java-hw-core-StreamApi2
Обзор
Документация
Войти
/
Shcod
/
java-hw-core-StreamApi2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/main/java/Person.java
66 строк
1 KB
Shcod
first commit
07 авг 2026, 00:06
07 авг 2026, 00:06
802b30e
Код
Авторство
О чём код?
public class Person { private String name; private String family; private Integer age; private Sex sex; private Education education; public Person(String name, String family, Integer age, Sex sex, Education education) { this.name = name; this.family = family; this.age = age; this.sex = sex; this.education = education; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getFamily() { return family; } public void setFamily(String family) { this.family = family; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } public Sex getSex() { return sex; } public void setSex(Sex sex) { this.sex = sex; } public Education getEducation() { return education; } public void setEducation(Education education) { this.education = education; } @Override public String toString() { return "Person{" + "name='" + name + '\'' + ", family='" + family + '\'' + ", age=" + age + ", sex=" + sex + ", education=" + education + '}'; } }