Example -- catching input error
number = Integer.parseInt(stdin.readLine());
} catch (NumberFormatException exception) {
System.out.println(�Invalid input. Try again.�);
} catch (IOException exception) {
System.out.println(�Input error. Terminating.�);