You’ll need to override that with a return (e1. getID == e2 . getID); The String class overrides equals() and checks for their contents, returning whether they are the same.
You’ll need to override that with a return (e1. getID == e2 . getID); The String class overrides equals() and checks for their contents, returning whether they are the same.