This class implements a vector of bits that grows as needed. Each component of the bit set has a {@code bool} value. The bits of a {@code BitSet} are indexed by nonnegative integers. Individual indexed bits can be examined, set, or cleared. One {@code BitSet} may be used to modify the contents of another {@code BitSet} through logical AND, logical inclusive OR, and logical exclusive OR operations.