src/main/java/seedu/address/model/modelStudent/Student.java
public boolean weakEquals(ModelObject otherStudent) {
        if (otherStudent == this) {
            return true;
        }

        if (!(otherStudent instanceof Student)) {
            return false;
        }

        Student otherStudentCast = (Student) otherStudent;
        return otherStudentCast != null
                && otherStudentCast.getName().equals(getName())
                && otherStudentCast.getId().equals(getId())
                && otherStudentCast.getTags().equals(getTags());
    }
/**
     * Returns true if both students of the same name have at least one other identity field that is
     * the same. This defines a weaker notion of equality between two students.
     *
     * @return true if both students of same name have at least one other identity field the same
     * false otherwise.
     */
Returns true if both students of the same name have at least one other identity field that is
the same. This defines a weaker notion of equality between two students.

@return true if both students of same name have at least one other identity field the same
false otherwise.
Returns true if both students of the same name have at least one other identity field that is the same . This defines a weaker notion of equality between two students . @return true if both students of same name have at least one other identity field the same false otherwise .
public boolean weakEquals(ModelObject otherStudent) {
        if (otherStudent == this) {
            return true;
        }
        if (!(otherStudent instanceof Student)) {
            return false;
        }
        Student otherStudentCast = (Student) otherStudent;
        return otherStudentCast != null
                && otherStudentCast.getName().equals(getName())
                && otherStudentCast.getId().equals(getId())
                && otherStudentCast.getTags().equals(getTags());
    }
public boolean weakEquals ( ModelObject otherStudent ) { if ( otherStudent == this ) { return true ; } if ( ! ( otherStudent instanceof Student ) ) { return false ; } Student otherStudentCast = ( Student ) otherStudent ; return otherStudentCast != null && otherStudentCast . getName ( ) . equals ( getName ( ) ) && otherStudentCast . getId ( ) . equals ( getId ( ) ) && otherStudentCast . getTags ( ) . equals ( getTags ( ) ) ; }
Returns true if both students of the same name have at least one other identity field that is
 the same.
Returns true if both students of the same name have at least one other identity field that is the same .