src/main/java/seedu/address/model/person/Person.java
/**
     * Returns true if both persons have the same ID.
     */
Returns true if both persons have the same ID.
Returns true if both persons have the same ID .
public boolean isSamePerson(Person otherPerson) {
        if (otherPerson == this) {
            return true;
        }
        return otherPerson != null
                && otherPerson.equals(this); 
    }
public boolean isSamePerson ( Person otherPerson ) { if ( otherPerson == this ) { return true ; } return otherPerson != null && otherPerson . equals ( this ) ; }
Returns true if both persons have the same ID.
Returns true if both persons have the same ID .
// check is same id and name