7. แถวลำดับ

The Camtasia Studio video content presented here requires JavaScript to be enabled and the latest version of the Macromedia Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by downloading here.

 
รหัสที่ 7-24  เมท็อดแสดงข้อมูลในอาเรย์สองมิติ
  public static void print(int[][] m) {
    for (int i=0; i<m.length; i++) {
      for (int j=0; j<m[0].length; j++) {
        System.out.print(m[i][j] + "\t ");
      }
      System.out.println();
    }
  }
©2009 S.Prasitjutrakul