public static void main(String args){
int a[][] = new int[3][4];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){//遍历数组
System.out.print(a[i][j]);
}
System.out.println();
}
}
public static void main(String args){
int a[][] = new int[3][4];
for(int i=0;i<a.length;i++){
for(int j=0;j<a[i].length;j++){//遍历数组
System.out.print(a[i][j]);
}
System.out.println();
}
}
转载于:https://www.cnblogs.com/chenligeng/p/7827867.html