for(int [] row:arrs) { for(int element:row) System.out.print(element+" "); System.out.println(); }这不叫foreach,foreach是C#里的关键词.JAVA中叫增强for循环.