public String getCourseName(){
return courseGrade;
}
public String getCoursegrade(){
return courseGrade;
}
Dont know exactly what errors you are talking about, but the getters are returning the same variable. The CourseGrade are returned instead of the CourseName in getCourseName()
The equals method does not have to take two parameters. In this case you can compare the current object with an other object.
public boolean equals(CourseGrade other)
{
return courseGrade.Equals(other.getCoursegrade());
}