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-12  ΰΑ·ηΝ΄ΚΕΡΊΆιΝΑΩΕ (·ΥθΌΤ΄)
  public static void main(String[] args) {
    double[] d = {10, 32, 11, 23};
    swap(d[0], d[2]);
  }
  public static void swap(double a, double b) {  
    double t = a;
    a = b;
    b = a;
  }
©2009 S.Prasitjutrakul