标准输入输出流、打印流、数据流
标准输入、输出流
System.in
:标准输入流,默认从控制台输入
System.out
:标准输出流,默认从控制台输出
System类的setIn()/setOut()方法可以重新指定标准输入和输出流
读取键盘输入
public static String next(){
BufferedReader bis = new BufferedReader(new InputStreamReader(System.in));
String str = "";
try {
str = bis.readLine();
} catch (IOException exception) {
exception.printStackTrace(