Good time of day!
They gave me this homework: there is a class OMOSet
, which represents many integers. You need to write the methods add(int element)
, remove(int element)
. So the source code is given, in which it is necessary to add the methods. Question: the OMOSet
class OMOSet
already a set, then AttayList
, Collection
cannot be used ... Need to write a constructor and attributes? How to create a set manually?
class OMOSet implements OMOSetView { public void add(int element) { } public void remove(int element) { } }