Runtime exception
Is this code is properly written: ____________________________________ import java.util.Scanner; public class MyClass { public static void main(String[ ] args) { Scanner input = new Scanner(System.in); System.out.println ("Insert number to be devided"); double value = input.nextDouble; System.out.println ("Insert number to devide with"); double div = input.nextDouble; try{ value = value / div; System.out.println (value); }catch (ArithmeticException e){ System.out.println("DIV with 0-not possible"); } } } ____________________________________ It should return div of inserted numbers, or "DIV with 0-not possible" if you insert 0 as seccond number.