Code example for Set

Methods: iterator

0
    public boolean contains(Object o) { 
        return elements.contains(o);
    } 
 
    public Iterator<T> iterator() {
        return elements.iterator();
    } 
 
    public Object[] toArray() { 
        return elements.toArray();
    } 
 
    public <A> A[] toArray(A[] a) {
        return elements.toArray(a);
    } 
 
    public boolean add(T t) {
        throw new UnsupportedOperationException();
    } 
 
Connect your IDE to all the code out there  Get Codota for Java