On Java practice 58.2 what is wrong ?
import java.util.Scanner; import java.util.InputMismatchException; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); try { int num1 = scanner.nextInt(); int num2 = scanner.nextInt(); /* 1. Еrror: division by zero 2. Error: wrong value type */ //your code goes here System.out.println(num1/num2); } catch(ArithmeticException ex) { System.out.print("Error: division by zero "); } catch(InputMismatchException ex){ System.out.println("Error: wrong value type"); } } } // on #2 //Your output : Error: division by zero //expected output: Error: division by zero // same output. somehow failed.