Skip to content

list#91

Open
ivan371 wants to merge 14 commits intoarhangeldim:masterfrom
ivan371:master
Open

list#91
ivan371 wants to merge 14 commits intoarhangeldim:masterfrom
ivan371:master

Conversation

@ivan371
Copy link

@ivan371 ivan371 commented Oct 19, 2016

No description provided.

}

public class DynamicList extends List {
private static final int DEFAULT_SIZE = 1000;
Copy link
Owner

Choose a reason for hiding this comment

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

Слишком большой размер, 10 - вполне подходит как дефолт, 1000 - нет

}

private boolean isEmpty() {
if (size > 0) {
Copy link
Owner

Choose a reason for hiding this comment

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

return size == 0

private int size;

public LinkedList() {
first = null;
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

Comments