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

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

TOP

返回列表