影3316
2019-04-13 00:39
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类没加
Java入门第三季
409776 学习 · 4546 问题
相似问题