Source Code เพื่อ การศึกษา
j0403.java
j0403
// ::: โปรแกรมลำดับที่ 17 // 1. การใช้ method หาค่า 2 เท่า // 2. ประกาศ method ไม่มี public ก็ได้ class j0403 { public static void main(String args[]) { int j = 3; System.out.println(doubleofnumber(j)); } static int doubleofnumber(int i) { i = i * 2; return (i); } }
ปรับปรุงโปรแกรม source.pl : 2553-03-20