public Set<Course> coursesToSelect; public Student student;
/**
* 学生类
* @author Administrator
*
*/
public class Student {
public String id;
public String name;
public Set<Course> courses;
public Student(String id, String name) {
this.id = id;
this.name = name;
this.courses = new HashSet<>();
}
}this.courses = new HashSet<Course>();
泛型里的Course类没加