Question: JAVA You will write a program that will allow the user to choose an exception from the menu. You will need try catch block to
JAVA
You will write a program that will allow the user to choose an exception from the menu.
You will need try catch block to handle the exceptions. The user must be able to pick from the menu what exception they want r whether they are done. When the useer makes a choice the program will have a meethod that deals with the following:
1. ArrayIndexOutOfBounds
2.FileNotFoundException
3.InputMismatchException
4.ClassNotFoundException
5.OutOfMemoryException
6.NoSuchMethodException
7.Exit
- once selecting one of the above from the menu you will prompt the user to know whether they want to rn the program or break it.
-If they want to run the program tell them how to do so, and if they want to break it prompt them how to do so.
- outprint why it was succesful or why it broke.
- if exit is chosen outprint "Program is done, thankyou!"
***2 Files, one with exceptions and one with menu(main)***
If you have any questions please ask.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
