Code example for BitSet

Methods: get

0
    public IntListBS(int initSize) {
        bs = new BitSet(initSize);
    } 
 
    public boolean contains(int elem) {
        return bs.get(elem);
    } 
 
    public boolean add(int arg0) {
         
        boolean ret = super.add(arg0); 
 
        if (ret)
            bs.set(arg0);
         
        return ret;
         
    } 
 
    public int removeLast() {