在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

 

相关文章:

  • 2022-02-03
  • 2021-05-27
  • 2021-06-07
  • 2021-06-12
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-04
  • 2021-08-28
  • 2021-09-04
相关资源
相似解决方案