Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean equals(Person person) {
- if(!(this.name.equals(person.name))){
- return false;
- }
- if(this.height != person.height){
- return false;
- }
- if(this.weight!= person.weight){
- return false;
- }
- if(!this.birthday.equals(person.birthday)){
- return false;
- }
- return true;
- }
- }
Add Comment
Please, Sign In to add comment