返回列表 發帖
  1. public class Ch20  //112~118
  2. {
  3.     public static void main(String args[])
  4.     {
  5.         
  6.         int n[][]={{1,2,3,4},
  7.                    {5,6,7,8},
  8.                    {9,10,11,12}};
  9.         for(int i=0; i<3; i++)
  10.         {
  11.                 for(int j=0; j<4; j++)
  12.                         System.out.println("n["+i+"]["+j+"]="+n[i][j]);
  13.         }
  14.       }
  15. }
複製代碼

TOP

返回列表