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

Get Method code doesnt match the text #17

Open
joaogomes44033 opened this issue Jul 26, 2017 · 0 comments
Open

Get Method code doesnt match the text #17

joaogomes44033 opened this issue Jul 26, 2017 · 0 comments

Comments

@joaogomes44033
Copy link

joaogomes44033 commented Jul 26, 2017

In page 16 you have this code

public T get(int index) {
if (index < 0 || index >= size) {
throw new IndexOutOfBoundsException();
}
return array[index];
}

but in the following text you have

it checks whether the index is less than size,

You're contradicting yourself

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

No branches or pull requests

1 participant