Java重定向标准输入/输出

在System类中提供了三个重定向标准输入/输出的方法
static void setErr(PrintStream err) 重定向“标准”错误输出流
static void setIn(InputStream in)    重定向“标准”输入流
static void setOut(PrintStream out)重定向“标准”输出流

参考 http://blog.csdn.net/zhy_cheng/article/details/7891142

原文地址:https://www.cnblogs.com/silvestris/p/5164144.html