@@ -0,0 +1,572 @@
+package java_problems.exception_handling;%0D%0A%0D%0Aimport java.util.*;%0D%0A%0D%0Apublic class TryCatch %7B%0D%0A%0D%0A    public static void main(String%5B%5D args) %7B%0D%0A        Scanner sc = new Scanner(System.in);%0D%0A        try %7B%0D%0A            int x = sc.nextInt();%0D%0A            int y = sc.nextInt();%0D%0A            int dividend = x / y;%0D%0A            System.out.println(dividend);%0D%0A        %7D catch (InputMismatchException e) %7B%0D%0A            System.out.println(e.getClass().getName());%0D%0A        %7D catch (ArithmeticException e) %7B%0D%0A            System.out.println(e);%0D%0A        %7D%0D%0A        sc.close();%0D%0A    %7D%0D%0A%7D

Add TryCatch