Guest User

Untitled

a guest
Jun 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. @Override
  2.             public boolean equals(Object something) {
  3.                     Candidate another = (Candidate) something;
  4.                    
  5.                     if( ! firstName.equals(another.firstName)) {
  6.                                     return false;
  7.                             }
  8.                    
  9.                     if( ! lastName.equals(another.lastName)) {
  10.                             return false;
  11.                     }
  12.                    
  13.                     return true;
Add Comment
Please, Sign In to add comment