New answers tagged

1 vote

when does the Map return null?

When using custom classes to define keys, you need both an equals() method and a hashCode() method in order to ensure that the key can be found. The latter identifies the correct "bucket" in ...
sfdcfox's user avatar
  • 487k

Top 50 recent answers are included