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
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