public void create_Student_And_SelectCours(){
Student st=new Student("1","小明");
System.out.println("欢迎"+st.id+"号"+st.name+"同学来选课");
Scanner console=new Scanner(System.in);
for(int i=0;i<3;i++){
System.out.println("请输入课程id");
String courseId=console.next();
for(int j=0;j<coursesToSelect.size();j++){
Course obj=coursesToSelect.get(j);
if(obj.id.equals(courseId));
st.courses.add(obj);
}
}
for(Course e:st.courses){
System.out.println(e.id+e.name);
}
}
public static void main(String[] args){
TestSet it=new TestSet();
it.testAdd();
it.testForEach();
it.create_Student_And_SelectCours();
}
}