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());


Method[] methods = theClass.getDeclaredMethods();
Method potentialSetter = null;
for (Method method : methods) {

List nodes = document.selectNodes("/qw/searchcontent/metadata");
for (Iterator it = nodes.iterator(); it.hasNext();) {

for (Map<String, Object> map : list) {
for (Object o : map.keySet()) {

for (String header : headers) {

你可能感兴趣的:(java)