Question: task 3 java lang 6:03 W08 Lab Sets, Maps, Hashes.docx copy-and-paste the source code from your Java file here. Task 3. Iterators (5 points) 3.1.
6:03 W08 Lab Sets, Maps, Hashes.docx copy-and-paste the source code from your Java file here. Task 3. Iterators (5 points) 3.1. In your own words, describe what each iterator method does: Retail 3.2. If you have a Collection variable list, containing strings, how would you use a for loop to display the contents of list? Hint: for (String word: list) { // your code here 3.3. Since an ArrayList, LinkedList, HashSet, and TreeSet all implement the Collection interface, the methods in this section work for variables of any of those data types. Which of the following does that demonstrate? Inheritance Suhetting Encapsulation Task 4. Hash basics. (10 points) Hash a list of employee name number combinations. Hashing function : the last three digits of the employee number Compression function: the value mod 10 (Hint: this is the last digit of the value coming in.) Index into the array: Key and value Hash code Amay index S13050350 D Dashboard Calendar To-do Notifications
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
