@@ -0,0 +1,583 @@
+import java.util.BitSet;%0Aimport java.util.Iterator;%0Apublic class BitSetIterator implements Iterator%3CBoolean%3E %7B%0A    private final BitSet bitset;%0A    private int index = 0;%0A    public BitSetIterator(BitSet bitset) %7B%0A        this.bitset = bitset;%0A    %7D%0A    public boolean hasNext() %7B  %0A        return index %3C bitset.length();%0A    %7D%0A    public Boolean next() %7B%0A        if (index %3E= bitset.length()) %7B%0A            throw new NoSuchElementException();%0A        %7D%0A        return bitset.get(index++);%0A    %7D%0A    public void remove() %7B%0A        throw new UnsupportedOperationException();%0A    %7D%0A%7D%0A

Create BitSetIterator.java