为什么这里会报错,明明按照教程步骤写的
请大神们找出原因
请大神们找出原因
2019-07-13
package com.imooc.collection; import java.util.HashSet; 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<Course>(); }
Student类写对了吗?是不是写成下面这样了
public Set<Course> Courses;
举报