返回列表 發帖
  1. public class A {

  2.         public static void main(String[] args) {
  3.                 int a[][]={{1,2,3,4},{5,6,7,8},{9,10,11,12}};
  4.                 for(int i=0; i<3; i++)
  5.                 {
  6.                         for(int j=0; j<4; j++)
  7.                                 System.out.println("a["+i+"]["+j+"]="+a[i][j]);
  8.                 }
  9.         }
  10. }
複製代碼

TOP

返回列表