Simple test case //+ int b = 0; try { b = System.in.read(); } catch (Exception e) { System.out.println("Caught " + e); } System.out.println("Read this data: " + (char)b); //-
//+ int b = 0; try { b = System.in.read(); } catch (Exception e) { System.out.println("Caught " + e); } System.out.println("Read this data: " + (char)b); //-