Code example for Set

Methods: isEmpty

0
    public int size() { 
        return elements.size();
    } 
 
    public boolean isEmpty() { 
        return elements.isEmpty();
    } 
 
    public boolean contains(Object o) { 
        return elements.contains(o);
    } 
 
    public Iterator<T> iterator() {
        return elements.iterator();
    } 
 
    public Object[] toArray() { 
        return elements.toArray();
    }