MyExceptions

Write a program that handles at least the following Exceptions:

NumberFormatException

InputMismatchEexception

ArrayIndexOutOfBoundsException

IllegalArgumentException

ArithmeticException

RuntimeException

Exception

Program should also prompt the user to read two integers and displays their sum. It prompts the user to read the number again if the input is incorrect.

Program should prompt the user to read the names of input and output files. It prompts the user to enter an existing input file name, and non-existing output file name.

Create more than a single class.

Name the driver TestMyExceptions5.java .

×
New Download