Question: This program will have you compare MyHashSet with the MyArrayList that was defined in chapter 24. The program should generate 1,000,000 random double values between
This program will have you compare MyHashSet with the MyArrayList that was defined in chapter 24. The program should generate 1,000,000 random double values between O and 999999 and store these values in both a MyArrayList and also a MyHashSet. Then generate a list of 1,000,000 random values between O and 1999999. For each number in the list, test if it is also in the array list and then repeat this test for the hash set. Run you program to display the total test time for the array list and then for the hash set
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
