for循环实体的两种方法 List<CouCourseapply> list = (List) pc.getResult();for(int i=0;i<list.size();i++){ CouCourseapply c = list.get(i);}for(CouCourseapply ccou : list){out.write(ccou.getBaseCourse().getCourseName().getBytes());}