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 Programming Challenge Starting out With Java Tony Gladdis th 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, eg 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, eg 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 hardcoded data from its String array, ask for the output data file name, and call writeArray with those values.
FileArrayTest will then: LOOP through: ask for the input data file name, call readArray and 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
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
