📜  多维 Java 数组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:39.232000             🧑  作者: Mango

代码示例1
class multiDimensionalArray
{
    public static void main(String args[])
    {
  
        int multiDimensional[][] = { {1,2,3},{4,5,6},{7,8,9} };
 
        for (int i=0; i< 3 ; i++)
        {
            for (int j=0; j < 3 ; j++)
                System.out.print(multiDimensional[i][j] + " ");
 
            System.out.println();
        }
    }
}