You are viewing a single comment's thread. Return to all comments →
Instead of
System.out.println("java.util.InputMismatchException");
we can use:
System.out.println(e.getClass().getName());
Java Exception Handling (Try-catch)
You are viewing a single comment's thread. Return to all comments →
Instead of
we can use: