Source Code เพื่อ การศึกษา
j0204.java
j0204
// :::: โปรแกรมลำดับที่ 7 // 1. แสดงการใช้คำสั่ง for // 2. โปรแกรมนี้ใช้ i นอก for ไม่ได้ // 3. ให้พิจารณา .length และ .length() class j0204 { public static void main(String args[]) { System.out.println("ASCII character :: "); for (int i=0; i<256; i++) { System.out.print((char)i + " "); // System.out.println(i); 0 - 255 } String s = "thaiall"; System.out.println(s + s.length()); } }
ปรับปรุงโปรแกรม source.pl : 2553-03-20