Question: Please develop a Java program to: 1. Read all data records from pj2Data.csv file into 2 data structures: An object array of MyRecord (MyRecord class

Please develop a Java program to:

1. Read all data records from pj2Data.csv file into 2 data structures:

An object array of MyRecord (MyRecord class was developed in Project #2.)

java.util.ArrayList

2. Sort records in descending order by Price (largest first) and display the CPU time used for such an operation. Perform these operations against the object array of MyRecord and java.util.ArrayList.

Hint: This program generates 2 lines of output.

Please name your driver file/class as YourLastNamePJ3.java

Input file: pj2Data.csv (The data file used in Project #2

Assumption: There are less than 20,000 records in pj2Data.csv

The data file pj2Data.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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!