Question: I need help with this part of a java program. The program reads in a file the uses a populate method to populate an array.
I need help with this part of a java program. The program reads in a file the uses a populate method to populate an array. Then using an insertionSort and selectionSort method to sort the array in the corresponding way. The file reads in as: name month day year.
The populate method reads in the Person data from a file (see below for the format). DO NOT assume that you know how many records are in the file. It creates a Person object from each line in the file and adds the object to the first ArrayList. The selectionSort method sorts the ArrayList using the selection sort algorithm. The insertionSort method sorts the ArrayList using the insertion sort algorithm.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
