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-11  เมท็อดสลับข้อมูลสองตัวในอาเรย์
  public static void swap(double[] d, int i, int j) {  
    double t = d[i];
    d[i] = d[j];
    d[j] = t;
  }
©2009 S.Prasitjutrakul