Is there a use case for the size() method on the java.util.BitSet class?
I mean - the JavaDoc clearly says it\'s implementation dependant, it returns the size of the int
It is the number of 0 and 1s which has to be a multiple of 64. You could use the cardinality() for the number of 1s.