2. คำนวณ

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.

 
รหัสที่ 2-2  ตัวอย่างการต่อสตริง
public class StringConcatenation {
  public static void main(String[] args) {
    System.out.print( "4+2 = " );
    System.out.println( 4+2 );
    System.out.println( "4+2 = " + (4+2) );
  }
}
©2009 S.Prasitjutrakul