Source Code เพื่อ การศึกษา
j0302.java
j0302
// ::: โปรแกรมลำดับที่ 11 // 1. แสดงการรับค่าจากแป้นพิมพ์แบบ character // 2. รับ 2 ตัวอักษรมาแสดงผลต่อกัน import java.io.*; class j0302 { public static void main(String args[]) throws IOException { char buf1,buf2; buf1 = (char)System.in.read(); buf2 = (char)System.in.read(); System.out.println("Output is "+buf1+buf2); } }
ปรับปรุงโปรแกรม source.pl : 2553-03-20