class Division { public static void main(String[] args) { int a, b, result; Scanner input = new Scanner(System.in); System.out.println("Input two integers"); a = input.nextInt(); b = input.nextInt(); // try block try { result = a / b; System.out.println("Result = " + result); } // catch block catch (ArithmeticException e) { System.out.println("Exception caught: Division by zero."); } } }

About Admin MC3
This is dummy text. It is not meant to be read. Accordingly, it is difficult to figure out when to end it. But then, this is dummy text. It is not meant to be read. Period.