Skip to content

athenian-programming/java-contains-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java equality and contains example

This repo demonstrates the importance of defining equals() and hashCode() methods.

The String class comes with equals() and hashCode() definitions.

See what happens in ObjectExample when MyObj doesn't have equals() and hashCode() defined.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages