Question: in java please 1 Write a program that meets the following: 1. Create an array with 100 randomly chosen integers. 2. Prompt user to enter
in java please

1 Write a program that meets the following: 1. Create an array with 100 randomly chosen integers. 2. Prompt user to enter index value of the array and then display element in that index position. If this index value entered is out of bounds then an ArrayIndexOutOfBoundsException exception should be thrown then display the message "Out of bounds" then continue on with the program. It should be done in the try.. catch block. 3. Note, you can also throw an exception of type Exception and it should work too due to Inheritance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
