static bool bitSet(int x, int bit) { ret (x & (1 << bit)) != 0; } static BitSet bitSet(L l) { new BitSet b; for (int i : l) b.set(i); ret b; }