重定向标准输入/输出

System.in和System.out代表系统的标准输入和输出。
System提供了以下方法将其重定向
public static void setOut(PrintStream out);
public static void setIn(InputStream in);

posted on 2020-11-09 22:11  lkwkk  阅读(57)  评论(0编辑  收藏  举报