length


Description:

public int length ()

Returns the index of the highest set bit plus one. Returns 0 if no bits are set.

Example:

    var bits = new BitSet (64);
bits.set (10);
assert (bits.length () == 11);

Returns:

the logical size of the BitSet.