so this is my code:
public Student(ArrayList<Course> courseList) {
this.courseList = courseList;
}
public Student(ArrayList<Mark> reportCard) {
this.reportCard = reportCard;
}
and this is the error: Erasure of method Student(ArrayList) is the same as another method in type Student.
the Array lists are different and I've learned that as long as the inputs of the constructors of a class are not similar, i can have as many constructor as i want. so, would you please tell me what's the problem with this code? I would really appreciate that.
I tried to have a constructor which makes all the array lists i want since it wouldn't give any error that way, However i reluzed that it doesn't go with my design. so I HAVE to use seperate constructors for each array list.l