for(List temp : list) { for(Objest obj : temp) { System.out.println(obj); }}JDK5以上支持
两个foreach循环List temp = new ArrayList();for(int i = 0;i temp = list.get(i); for(Object o:temp){ // do what you want to do }}