Package java.util
Class BitSet

Public Method get

boolean get(int bit)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns the value of the bit with the specified index. The value is true if the bit with the index bitIndex is currently set in this BitSet. Otherwise, the result is false.

Example

   if (bitset.get(1))
      Logger.log("The second element is set to a correct value!");

The bitset.get method returns true only if a correct value is assigned to the second element.