OutputStream to_file = System.out 是什么意思??

来源:百度知道 编辑:UC知道 时间:2024/09/21 22:29:56
OutputStream to_file = System.out 是什么意思??

声明了一个输出流文件,指向标准输出,然后如果对to_file写入数据流的话,就会输出到屏幕上。

让名为to_file的引用指向System.out对象

System.out是当前系统默认的输出流