BitSet: andNot(BitSet set) : BitSet « java.util « Java by API






BitSet: andNot(BitSet set)

 
import java.util.BitSet;
public class Main {
 public static void main (String args[]) {
    BitSet bites = new BitSet();
    bites.set(0);
    bites.set(1);
    bites.set(2);
    bites.set(3);
    System.out.println(bites);
 
    bites.andNot(bites);
    System.out.println(bites);

 }
}

   
  








Related examples in the same category

1.new BitSet(int size)
2.BitSet: and(BitSet anotherBitSet)
3.BitSet: clone()
4.BitSet: get(int bitIndex)
5.BitSet: length()
6.BitSet: or(BitSet anotherBitSet)
7.BitSet: set(int bitIndex)
8.BitSet: size()
9.BitSet: xor(BitSet anotherBitSet)