二维数组

/**
 * @author qingfeng
 * 功能:二维数组
 */
public class Array {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int arr[][] = new int[4][6];
        arr[1][3] = 1;
        arr[2][1] = 2;
        arr[2][3] = 3;
        for(int i=0; i<4; i++)
        {
            for(int j=0; j<6; j++)
            {
                System.out.print(arr[i][j]+" ");
            }
            System.out.println();
        }
    }

}

原文地址:https://www.cnblogs.com/qingfengzhuimeng/p/6502239.html