提示用户输入数组的下标,然后显示对应的元素值。如果指定的下标越界,则显示消息“Out of Bounds”。 *12.3(Arrayindexoutboundsexception exception)Write a program that meets the following requirements:
Creates an array of 100 randomly selected integers.
Prompts the user to enter the index of the array, and then displays the corresponding element value. If the specified subscript is out of bounds, the message “out of bounds” is displayed.