Objective: Compare CPU efficiency between ArrayList and LinkedListInput file: hw4Data.csvAssumption: The number of records in hw4Data.csv is unknownThe data file “hw4Data.csv” is a csv (comma separate value) file and contains 3 fields, separated by commas,on each line: Submitted files must contain the names of all members.
You are not allowed to submit binary files, including zip files, image files, and bytecodes.
Please name your Java file/class as Team#HW4.java, e.g., YaoTeam78HW4.java
Objective: Compare CPU efficiency between ArrayList and LinkedList
Input file: hw4Data.csv
Assumption: The number of records in hw4Data.csv is unknown
The data file “hw4Data.csv” is a csv (comma separate value) file and contains 3 fields, separated by commas,
on each line:
Property ID, County, Price
Listed below are some sample lines:
119736,CLAY COUNTY,792148.9
448094,CLAY COUNTY,1438163.57
206893,CLAY COUNTY,192476.78
333743,CLAY COUNTY,86854.48
172534,CLAY COUNTY,246144.49
Please develop a Java program to:
1. Read all data records from hw4Data.csv file into 2 data structures:
java.util.ArrayList
java.util.LinkedList
2. Sort records in descending order by Price (largest first) and display the CPU used for such an operation.
Perform these operations on the data structured created in Step 1.
Hint: This program generates at most 2 lines of output.