二维数组
package com.tiedandan.base;
import sun.font.FontRunIterator;
import java.util.concurrent.ForkJoinPool;
public class twodimensionalarray {
public static void main(String[] args) {
int[][]arrays={{1,2},{3,4},{5,6},{7,8}};
printarray(arrays);
}
//二维数组的遍历。
public static void printarray(int[][]arrays){
for (int i = 0; i <arrays.length ; i++) {
for (int j = 0; j <arrays[i].length ; j++) {
System.out.println(arrays[i][j]);
}
}
}
}