Skip to content

Conversation

@GrafClassiC
Copy link

Home_Work OOP1
Gender
FamilyTree
Main

@GrafClassiC
Copy link
Author

Работа над ошибками

@GrafClassiC
Copy link
Author

Добавил реализацию чтения и записи

Comment on lines +6 to +7
void writeToFile(String fileName, List<Person> people);
List<Person> readFromFile(String fileName);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сохранять и загружать лучше все дерево, а не только список людей

import java.util.List;
import java.util.Objects;

class Person {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ожидается интерфейс Serializable

import java.util.HashMap;
import java.util.Map;

class FamilyTree {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ожидается интерфейс Serializable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants