Class SMOset

    • Constructor Detail

      • SMOset

        public SMOset​(int size)
        Creates a new set of the given size.
    • Method Detail

      • contains

        public boolean contains​(int index)
        Checks whether an element is in the set.
      • delete

        public void delete​(int index)
        Deletes an element from the set.
      • insert

        public void insert​(int index)
        Inserts an element into the set.
      • getNext

        public int getNext​(int index)
        Gets the next element in the set. -1 gets the first one.
      • printElements

        public void printElements()
        Prints all the current elements in the set.
      • numElements

        public int numElements()
        Returns the number of elements in the set.