Any quick method to count the number of set bits in a BitSet other than the usual \'keep a counter\' method?
BitSet B1 = new BitSet(3); B1.set(0); B1.cardinality();
Output:
1