我这个运行提示类型转换异常 求解
Course[] course= {
new Course("3","大学语文"),
new Course("4","大学英语")
};
coursesToSelect.add(Arrays.asList(course));
//下面两行提示类型转换异常
Course temp3=(Course) coursesToSelect.get(2);
Course temp4=(Course)coursesToSelect.get(3);