In Java, the BitSet is a class that is available in the java.util package.
The BitSet object represents a vector of bits whose size can grow according to the requirement. Every bit in the bit set has a
boolean value true/false.
The bits in a
are indexed by the positive integers only. All bits in the bit set initially have the
value, by default.
User can can
set or clear the individual indexed bits.
Logical AND, logical inclusive OR, and logical exclusive OR operations can be used by one
BitSet to modify the
contents of another
The BitSet class in the
java.util package provides
methods to access a given bit in the array with an index:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: April 3, 2006 If you enjoyed this post then why not add us on Google+? Add us to your Circles