Question
Create a java program that: compares the Memory and CPU efficiency between java.util.ArrayList and java.util.LinkedList . Here is the Input file: midData.csv The number of
Create a java program that:
compares the Memory and CPU efficiency between java.util.ArrayList and java.util.LinkedList.
Here is the Input file: midData.csv
The number of records in midData.csv is unknown
Each line in midData.csv contains three fields separated by commands:
ID, Age, StateCode
For example:
873719127,35, NJ
36327049,111, NH
670172212,57, SD
Create one Java program to fulfill the following:
- Read data records from midData.csv file into java.util.ArrayList and java.util.LinkedList
- Show the memory used by java.util.ArrayList
- Show the memory used by java.util.LinkedList
- Search through ArrayList to count the number of records that have the Age > 55 and show the CPU time used for this operation
- Search through LinkedList to count the number of records that have the Age > 55 and show the CPU time used for this operation.
Hint:
Ava and Eva share a bank account which has $100 in it.
Ava took out some money, the balance is $60. How much did Ava take out?
$100 - $60 = $40 Hence, Ava took out $40.
Eva took out some money, the balance is $30. How much did Eva take out?
$100 - $30 = $70 Hence, Eva took out $70.
Ava took out $40 + Eva took out $70 + balance $30 = the account had $140?
But, the original account balance was $100.
I use JGRASP so it has to be in one java file.
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