How to write equals method in JAVA? | Hacker News Reader