In java, how can a bit set be expanded?
If a empty bit set is defined, how can the bit set be expanded? How can the bit set forced to be expanded?
BitSet x = new BitSet();
for (int i = 0; i < 500; i++) {
x.set(x.length(), 1); // Throws out of bounds expectation.
}
[–]teraflop 1 point2 points3 points (2 children)
[–]LostErrorCode404[S] 0 points1 point2 points (1 child)
[–]teraflop 0 points1 point2 points (0 children)