This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

equals

 
meeta gaur
Ranch Hand
Posts: 305
Notepad Tomcat Server Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


true
false
false

Couldn't figure out, why equals is not working ?
 
Campbell Ritchie
Sheriff
Pie
Posts: 48952
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some poor code style there. Your two return statements are confusing. It should read:- You should not use tabs for indenting, as explained here.
You should always put the @Override annotation on overridden methods, like this, and compile the code again:- That will probably help explain why your method is not working.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic