返回列表 發帖
  1. public class Ch00
  2. {
  3.     public static void main(String args[])
  4.     {
  5.         int a[][]={{1,2,3,4},
  6.                          {5,6,7,8},
  7.                  {9,10,11,12}};
  8.         for(int x=0; x<3; x++)
  9.         {   
  10.                 for(int y=0; y<4; y++)                       
  11.                     System.out.println("a["+x+"]["+y+"]="+a[x][y]);                    
  12.         }       
  13.     }
  14. }
複製代碼

TOP

返回列表