package cn.com.bytestream;
import java.io.IOException;
import java.io.InputStream;
/**
*模拟 键盘录入,输入a,回车后出现其他数字??
* @author Administrator
*
*/
public class JianPanInputDemo {
public static void main(String[] args) throws IOException {
readKey();
}
public static void readKey() throws IOException {
InputStream in=System.in;
int ch=in.read();
System.out.println(ch);
int ch1=in.read();
System.out.println(ch1);
int ch2=in.read();
System.out.println(ch2);
}
}
|
|