src/main/java/seedu/address/model/modelCourse/Course.java
public boolean weakEquals(ModelObject otherCourse) {
        if (otherCourse == this) {
            return true;
        }
        if (!(otherCourse instanceof Course)) {
            return false;
        }
        Course otherCourseCast = (Course) otherCourse;
        return otherCourseCast != null
                && otherCourseCast.getName().equals(getName())
                && otherCourseCast.getId().equals(getId());
    }
/**
     * Returns true if both courses of the same name have at least one other identity field that is
     * the same. This defines a weaker notion of equality between two courses.
     */
Returns true if both courses of the same name have at least one other identity field that is
the same. This defines a weaker notion of equality between two courses.
Returns true if both courses of the same name have at least one other identity field that is the same . This defines a weaker notion of equality between two courses .
public boolean weakEquals(ModelObject otherCourse) {
        if (otherCourse == this) {
            return true;
        }
        if (!(otherCourse instanceof Course)) {
            return false;
        }
        Course otherCourseCast = (Course) otherCourse;
        return otherCourseCast != null
                && otherCourseCast.getName().equals(getName())
                && otherCourseCast.getId().equals(getId());
    }
public boolean weakEquals ( ModelObject otherCourse ) { if ( otherCourse == this ) { return true ; } if ( ! ( otherCourse instanceof Course ) ) { return false ; } Course otherCourseCast = ( Course ) otherCourse ; return otherCourseCast != null && otherCourseCast . getName ( ) . equals ( getName ( ) ) && otherCourseCast . getId ( ) . equals ( getId ( ) ) ; }
Returns true if both courses of the same name have at least one other identity field that is
 the same.
Returns true if both courses of the same name have at least one other identity field that is the same .