for( Course cr:st.coursesToSelect);{
if(cr.id.equals(courseId)) {
student.courses.add(cr); }
错误代码提示
cr cannot be resolved
如果你没有定义泛类的话,那cr应该是objcet