BitSet: get(int bitIndex)
boolean get(int bitIndex)
- Returns the value of the bit with the specified index.
/*
* Bit 65 is true
*/
import java.util.BitSet;
public class MainClass {
public static void main(String[] argv) {
BitSet bs = new BitSet();
bs.set(65);
System.out.println("Bit 65 is " + bs.get(65));
}
}