Source Code เพื่อ การศึกษา
j0100.java
j0100
// ::: โปรแกรมลำดับที่ 1 (2549-10-17) // 1. ประมวลผล เช่น javac j0100.java // 2. ประมวลผล เช่น java j0100 abc def // 3. สามารถรับ parameter มาประมวลผลในโปรแกรมได้ // 4. ผลที่ได้จะเห็นเลข 2 เพราะรับข้อมูลเข้าไป 2 ค่า // 5. http://www.yonok.ac.th/burin/langspec20/ class j0100 { public static void main(String args[]) { System.out.println(args.length); System.out.println(args[0]); // abc } }
ปรับปรุงโปรแกรม source.pl : 2553-03-20