可以用
System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));
重新定位到标准输出流
System.setOut(ps)重定义了输出流后,如何重定向控制台输出
最新推荐文章于 2024-12-18 09:37:42 发布
可以用
System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));
重新定位到标准输出流