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

in java please 1 Write a program that meets the following: 1.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!