When I run below lines in Windows command line it does not take the first letter. If I enter 22
it prints only '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();
}
}