Please help in understanding the requirements.
This is how I understand it,
first, from standard input (I'm will need to use Scanner) read in 100 integers.
2nd, put all the 100 integers in a file (using printwriter in my case)
3rd, use that file to catch the exceptions
(ArrayIndexOutOfBoundsException) Write a program that meets the fol lowing requirements:
■ Read a file name on one line from Standard Input. Filename will not have mistakes.
■ Use that file to read 100 integers.
■ Keep reading from standard input until EOF or when the user enters -1.
■ Read integers from standard input, You need to capture both input mistmatch exceptions and array index out of bounds exception. If an existing index is entered output "index: value, ".
■ You must capture the exception ArrayIndexOutOfBoundsException. If the previous otuput was not an Exception output a new line first. Then output "Exception: index is Out of Bounds" where index is the number just read.
■ If the user enters mismatch format data after the file name, catch the InputMismatchException and display "Exception: Enter an integer (-1 to quit)\n"; Once again start the exception with a newline if the previous output was not an Exception.
■You will never print out a blank line, if the last line has legal data (i.e., index value,space) then terminated that line with a newline.