Java equals and hashmaps problem - by johan001 So I'm learning Java and I'm trying to understand equals, but I really don't understand it. So my question is: how does equals works? Thanks Read the article