返回列表 發帖
  1. public class Ch08
  2. {
  3.     public static void main(String args[])
  4.     {
  5.        int a[][][]={{{1,2,3,4},{5,6,7,8},{9,10,11,12}},{{13,14,15,16},{17,18,19,20},{21,22,23,24}}};

  6.        for(int x=0;x<2;x++)
  7.        {
  8.          for(int y=0;y<3;y++)
  9.          {
  10.          for(int z=0;z<4;z++)
  11.          {
  12.             System.out.println("n["+x+"]["+y+"]["+y+"]="+a[x][y][z]);
  13.          }
  14.        }
  15.        }
複製代碼

TOP

返回列表