import java.util.ArrayList; public class StupidSet { private ArrayList elements; private int size; /** * @param items is an array list of items to * put in our StupidSet without duplicates */ public StupidSet(ArrayList items) { } /** * This makes an empty StupidSet */ public StupidSet() { } /** * This adds a new item to our StupidSet and returns * false if the item is already present. * @param newItem the new item we are adding * @return false if the new item is not added and * true otherwise. */ public boolean add(T newItem) { return false; } /** * This checks for the presence of item * in this StupidSet. * @param item the new item we are checking for * @return false if the item is not present * true otherwise. */ public boolean contains(T newItem) { return false; } /** * This checks to see if other is * a subset of this StupidSet. * @param item a Stupidset * @return true if every element of * other belongs to this StupidSet * and false otherwise. */ public boolean containsAll(StupidSet other) { return false; } /** * This removes item if it is present * @param item the item we are trying to remove * @return false if the item is not present * true if the item got removed. */ public boolean remove(T item) { return false; } /** * This adds all items in moreStuff to this StupidSet * @param moreStuff a StupidSet * @return true if at least one item * is added */ public boolean addAll(StupidSet moreStuff) { return false; } /** * This makes a Python-list style representation of * our StupidSet. * @return a representation of the form *
[one, two, three .... last]
*/ public String toString() { return ""; } public int size() { return size; } }