日期:2014-05-20 浏览次数:20731 次
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; public class InputStreamTest { public static void main(String[] args) { BufferedReader in= new BufferedReader(new InputStreamReader(System.in)); try { System.out.println(in.read()); in.close(); } catch (IOException e) { e.printStackTrace(); } } }