Question: Modify the java programs provided in pAssignment07_template.zip and add necessary code components so as to allow a user to input integer values into a 6-element
Modify the java programs provided in pAssignment07_template.zip and add necessary code components so as to allow a user to input integer values into a 6-element array and search the array. The program should allow the user to retrieve values from the array by index and by specifying a value to locate (see the examples below and explanations in the class by the instructor). The program should handle any exceptions that might arise when inputting values or accessing array elements. The program should throw a NumberNotFoundException (refer to the template code given above) if a particular value cannot be found in the array during a search. If an attempt is made to access an element outside the array bounds, catch the ArrayIndexOutOfBoundsException and display an appropriate error message. Also, the program should throw an ArrayIndexOutOfBoundsException if an attempt is made to access an element for which the user has not yet input a value (the inputs and outputs should be though basic Java GUIs as shown below).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
