for(Object obj:coursesToSelect)
public void testForEach(){
// 通过For each遍历集合
for(Object obj:coursesToSelect){
System.out.println("通过For each遍历");
Course cr = (Course)obj;
System.out.println("课程:"+cr.name);
}
}
Type mismatch: cannot convert from element type java.lang.Object to org.omg.CORBA.Object
为什么我会报这个错?