为什么(Course)SelectCourse.get(i)会失败
int size=SelectCourse.size();
for(int i=0;i<size;i++){
Course temp = (Course)SelectCourse.get(i);
System.out.println(temp.id+":"+temp.name);
}
int size=SelectCourse.size();
for(int i=0;i<size;i++){
Course temp = (Course)SelectCourse.get(i);
System.out.println(temp.id+":"+temp.name);
}
2016-02-13
举报