static int bitCount(BitSet bs) { ret bs == null ? 0 : bs.cardinality(); } static int bitCount(int i) { ret Integer.bitCount(i); }