标准的输入流: - 默认从键盘输入
- System.in
标准的输出流 - 默认从控制台输出
- System.out
- System.setIn(InputStream is);
- 设置标准输入流输入位置为参数输入流连接的位置
- System.setOut(OutputStream os);
- 设置标准输出流输出位置为参数输出流连接的位置
- 也称之为重定向,也就是通过System类中的setIn()方法和setOut()方法对默认输入输出位置进行修改
- 这里的printStream是OutputStream的子类


![标准的输入输出流 [Java] 标准的输入输出流 [Java]](http://www.mshxw.com/aiimages/31/695063.png)
