Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions