#
Quiz 5: Collections
- Create a class called
Test. It has amain()method in which the following must happen.
Create a HashMap of values: 1->"one", 2->"two", 3->"three", 4->"four", and 5->"five".
Then create a set of map's keys, and use an iterator to print all the values that contain the letter "o".
Also put those "o" values into an array calledcontainsO. Then use a for-each loop to iterate through the array and add each value to an ArrayList calledhasO.
Use all of the best practices that we use in class (except JavaDocs) and make sure your code handles null values properly. (12/12)