Question
Given this UML diagram, I need help with the second part, the lab2. Your save and load methods must store set information in binary integer
Given this UML diagram, I need help with the second part, the lab2.
Your save and load methods must store set information in binary integer format (not as text). To develop familiarity with object storage, implement the load and save features using the java.io.ObjectInputStream and java.io.ObjectOutputStream classes, respectively. You will also override the inherited constructor of CS1181Set to include a new check that verifies that the parameter list has no duplicate elements. If duplicate elements exist, throw a custom InvalidDuplicateElements exception. Make good use of the super constructor to inherit existing functionality.
java.util.ArrayListStep 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