Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HW3 #1173

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

HW3 #1173

wants to merge 5 commits into from

Conversation

DivergenceTheorem
Copy link

No description provided.

return new HumanIterator();
}

class HumanIterator implements Iterator<Human>{
Copy link
Owner

Choose a reason for hiding this comment

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

Вынести класс в отдельный файл

Comment on lines +143 to +149
public void sortByName(){
Collections.sort(humanList);
}

public void sortById(){
Collections.sort(humanList);
}
Copy link
Owner

Choose a reason for hiding this comment

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

если тело метода одинаковое, то вы получите одинаковый результат. Один из методов выполнен неверно

Copy link
Owner

Choose a reason for hiding this comment

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

второй неверен

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