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());
Seems like cookies are disabled on this browser, please enable them to open this website
Java Exception Handling (Try-catch)
You are viewing a single comment's thread. Return to all comments →
Instead of
we can use: