Question
Despite of all the fun weve had implementing lists and maps, theres still one thing we havent touched yet: the set! Implementing a simple one
Despite of all the fun weve had implementing lists and maps, theres still one thing we havent touched yet: the set! Implementing a simple one ourselves is what this assignment is all about.
To spare you the hassle of implementing all of the methods of Javas very own Set interface, we have prepared our own interface for you to implement. Download our XYSet interface and place it in the package it longs to be in. Then, create a class ExcellentXYSet that implements the interface in the same package. How you save the data in your set is your decision, as long as you do not use Javas collections framework. You may, however, use classes you have already written over the course of the semester. If you do so, you can place them in the same source file as you already did in previous assignments (just remember to not make them public).
You only have to submit the file that contains your ExcellentXYSet class (and possibly other classes). The interface will be present on the test server.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started