Code example for BitSet

Methods: clear

0
            maxHandle = handle;
        return handle;
    } 
 
    public int freeHandle(int handle) {
        handles.clear(handle);
        return handle;
    } 
 
    private int nextClearBit() { 
        // return handles.nextClearBit(1); // JDK 1.4 
        for (int i = 1;; i++)
            if (!handles.get(i))
                return i;
    } 
 
    public int highestHandleInUse() { 
        return handles.length() - 1;
    } 
 
    public int maxHandlesUsed() {