📜  如何使用 bufferedreader java 代码示例读取整数输入

📅  最后修改于: 2022-03-11 14:52:24.593000             🧑  作者: Mango

代码示例1
BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));
int num = Integer.parseInt(reader.readLine());