(week of Mar 30 - Apr 3)
Write a program that allows a user to input integer values
into a 10-element array and search the array. The pro-
gram should allow the user to retrieve values from the array by index or by
specifying a value to locate. The pro-
gram should handle any exceptions that might arise when inputting values or
accessing array elements. The
program should throw a NumberNotFoundException 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 ArrayIn-
dexOutOfBoundsException and display an appropriate error message.