当我在 Windows 命令行中运行以下行时,它不采用第一个字母。如果我输入22
它只打印'2'
private static String readInput() {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
input = br.readLine();
System.out.println("input "+input);
} catch (Exception ioe) {
System.out.println("Error trying to read your input!");
ioe.printStackTrace();
}
}