使用InputStream从控制台读取字符
/* 来自 nowjava*/ import java.io.IOException; public class Main { public static void main(String[] args) { int iChar = 0; System.out.println("Read user input character example"); try { System.out.println("Enter a character to continue"); iChar = System.in.read(); System.out.println("Char entered was : " + (char)iChar); }//来 自 n o w j a v a . c o m catch(