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

TOP

返回列表