Question: Objective: Use interfaces and Collections in Java. Java program 1. Download the 4 files from the Words folder on Canvas into an empty folder on
Objective: Use interfaces and Collections in Java. Java program 1. Download the 4 files from the Words folder on Canvas into an empty folder on your workstation. DO NOT MODIFY THE 4 FILES YOU DOWNLOAD! 2. Write a class ArrayListWords that implements collectionwords using an ArrayList. Your class should contain a single field: private ArrayList aList; Write a class HashMapWords that implements CollectionWords using a HashMap. Your class should contain a single field 3. private HashMapkString, Integer> map; 4. Run the Benchmark driver application. 8:05 9 Back Benchmark.java value collect.get (word); endTime System.currentTimeMillis); if (value-null) %d (endTime- System.out.printf(" msec to find \"%s\" %.1e times ", startTime), word, (double)times); else System.out.printf(" 8d msec to NOT find \"%s\" %. le times ", (endTime startTime), word, (double)times) // main testbench method public static void main(String [] args) throws IOException ( ArrayList.. .") ArrayListWords() (int)le4); (int)le4); (int)le4); (int)le4); System.out.println( "Testing ArrayListWords anew testcollection(a, "Aaron", testcollection(a, "harmless", testcollection(a, "zygote", testCollection (a, "zzzzzz", System.out.println(nTesting Hash Map..."); HashMapWords() (int)le8); (int)le8); (int)le8); (int)le8); HashMapWords hnew testCollection (h, "Aaron", testCollection (h, "harmless testCollection(h, "zygote, testCollection (h, "zzzzzz