Package java.util
Class BitSet

Public Method length

int length()

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns the length of this BitSet. The index of the highest set bit in the BitSet plus one. Returns zero if the BitSet contains no set bits.

Example

   BitSet bitset = new BitSet(6);
   bitset.set(0);
   Logger.log("length of the bitset: " + bitset.length());

The example above returns the length of the bitset.