posted 21 years ago
I am using the java.util.BitSet class.
I have questions if I am using the BitSet methods
correctly. I am using clear and set. See below...
Will 'clear' method, clear the bit to 'off' or clear it to '0'?
Will 'set' method, set the bit 'on' or set it to '1'?
----------------------
Definitions:
private BitSet Bits;
private int BitIndex;
Instianiate:
Bits = new HuffBitSet(25);
Use:
Bits = bits.clear(BitIndex);
Bits = bits.set(BitIndex);