Question: Chapter 1 1 Programming Challenge 6 Starting out With Java Tony Gladdis 4 th edition - MUST include following added specifications: - Name and submit

Chapter 11 Programming Challenge 6 Starting out With Java Tony Gladdis 4th edition - MUST include following added specifications: -Name and submit your two files FileArray and FileArrayTest.
-FileArray will have methods writeArray() and readArray().
-writeArray() will receive an array of String not an array of int.
-The String[] received should be of ints, e.g.,5,13, etc.
-writeArray() will convert those Strings to ints and write them.
-writeArray() must display a reasonable notice if a NumberFormatException is thrown.
-readArray () the array parameter will be an array of String not an array of int.
-The values of the String[] array returned will be numeric ints, e.g.,5,13, etc.
-readArray () will read ints from the file and convert them to Strings.
-readArray() must display a reasonable notice if a FileNotFoundException is thrown.
-readArray () must display a reasonable notice if a NumberFormatException is thrown.
-FileArrayTest will obtain the data file name for writeArray() from the user.
-FileArrayTest will obtain the data file name for readArray() from the user.
-FileArrayTest will: display the hard-coded data from its String array, ask for the output data file name, and call writeArray() with those values.
-FileArrayTest will then: LOOP through: 1) ask for the input data file name, 2) call readArray(), and 3) display the data that was read from that file, until the file name is stop.- Define exception NumberTooLow if an int value is less than 10.
-Have writeArray() display a reasonable notice if a NumberTooLow is thrown.
-Have readArray() display a reasonable notice if a NumberTooLow is thrown.

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!