Package java.util
Class BitSet

Public Method set

void set(int bit)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Sets the bit specified by the index to true.

Example

   BitSet bitset = new BitSet(6);
   bitset.set(0);

The bitset.set method sets the first element of the bitset.