Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 InheritanceStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started