获取用键盘输入常用的的两种方法

答案解析

常用Scanner类(如Scanner(System.in))和BufferedReader(配合InputStreamReader(System.in))读取键盘输入。