标签:object
String sql = "select * from student"; list = this.TreeService.getTreeList(sql); //slist = dwg(list); for(int i=0; i<list.size(); i++){ Student student =new Student(); Object[] objects = (Object[]) list.get(i); student.setId(((Integer)objects[0]).intValue()); student.setName(objects[1].toString()); student.setClass_id(((Integer)objects[2]).intValue()); // student.setId(i); // student.setName("人员"+i); // student.setClass_id(i); System.out.println("student值: "+student.getId()+student.getName()+student.getClass_id()); //Student student = (Student) list.get(i); slist.add(student); System.out.println("----nmd5----"); }
标签:object
原文地址:http://blog.csdn.net/ahhmdwg/article/details/44410405