Question: 1. Create a file for the program shown here. 2. Pass the following argunents to the application: 1024 12 3. What is the resulh? 4.
1. Create a file for the program shown here. 2. Pass the following argunents to the application: 1024 12 3. What is the resulh? 4. Pass the following arguments to the application: 5. What is the result? 6. Pass the following arguments to the application: 7. What is the result? 8. When you get this working correctly to catch both types of 125 5x 390 exceptions (crrors)I want you to combine the catch sections into one catch section as shown in the cxample in class: try t value = Integer parseInt (textvalue): catch (NumberFormatExceptionI ArithmeticException exc) / code to handle exception You will need to add the code to test for which type of exception was caught, NumberFormat or Arithmetic package com.IST240Apps public class NumberDivider arguments) public static void main(Stringt l if (arguments.length2) int result 0 tr result Integer.parseInt (arguments(o])/ Integer.parseInt (arguments(1]): System.out.println(arguments(0] divide by"+ " equalsresult): (NumberFormatException e) arguments[1 catch System.out.printin( "Both arguments must be integers."): (ArithmeticException e) f cannot divide by zero.") catch System.out.println("You
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
