http://necro.javaeye.com/blog/48098重新编译文件获得输入输出流,那样想复制到哪都行了。。。。
BufferedReader stream = new BufferedReader(new InputStreamReader(System.in));System.out.println(stream);