Question: Create an array with 5 elements. Ask the user to enter a number. If the user does not write a number, then warn him that
Create an array with 5 elements. Ask the user to enter a number. If the user does not write a number, then warn him that it is necessary to enter only numbers and try to enter new number. Print the value of the array at the position entered by the user. If the user entered a number greater than 4, then catch the error and start entering new number(java).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
