Question: Build a Set in java 1. Create a Class that implements Set. 2. Write an implementation for all of Sets methods a. The underlying data
Build a Set in java
1. Create a Class that implements Set.
2. Write an implementation for all of Sets methods
a. The underlying data structure storing values for the Set may be an array or another Collection implementation but not an implementation of Set.
b. Build the class first to take Objects.
c. Keep in mind the features of a Set such as having no duplicates and not needing to maintain order.
3. Build a main method to test and display the functionality of the Set class you built.
4. Refactor the Set class to take generics.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
