BitSet: get(int bitIndex)
/* * 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)); } }