Question: This problem refers to the class Split, with the constructor below, that is used for recording 400 meter split times in a 800 meter
This problem refers to the class Split, with the constructor below, that is used for recording 400 meter split times in a 800 meter running race. (You can assume that in addition to the constructor, the class includes various accessor methods and so on, but they are not needed for this problem.) Constructor Summary Constructor and Description Split(String name, double t1, double t2) Constructs a new Split with the given times. A text file consists of lines that have a name followed by two numbers, representing the split times for that runner. A short sample of such a text file is shown below. Sarah 59.01 65.44 Sudhanva 47.65 78.20 Ying 61.41 61.40 Write a static method that, given the name of a file having the format above, returns an ArrayList of Split objects, one for each line of the file. { Do not write the Split class; assume it is available for you to use. Do not worry about import statements. public static ArrayList readSplitFile (String filename) throws FileNotFoundException
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
