Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started