Java.util.BitSet.or() Method

Description

The java.util.BitSet.or(BitSet set) method performs a logical OR of this bit set with the bit set argument. This bit set is modified so that a bit in it has the value true if and only if it either already had the value true or the corresponding bit in the bit set argument has the value true.

Declaration

Following is the declaration for java.util.BitSet.or() method

public void or(BitSet set)

Parameters

set − a bit set.

Return Value

This method does not return a value.

Exception

NA

Example

The following example shows the usage of java.util.BitSet.or() method.