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

About Appendix: Understanding equals() and hashCode() #60

Open
antaow opened this issue Jun 28, 2022 · 0 comments
Open

About Appendix: Understanding equals() and hashCode() #60

antaow opened this issue Jun 28, 2022 · 0 comments

Comments

@antaow
Copy link

antaow commented Jun 28, 2022

Bruce,
When I read your chapter on Appendix: Understanding equals() and hashCode(), In the section of Understanding hashCode(), original text:The put() method places the keys and values in corresponding ArrayLists. In accordance with the Map interface, it must return the old key or null if there was no old key.

I think it should return old value.

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