java – how to create and manipulate a bit array with length of 10 million bits

Use BitSet (as Hunter McMillen already pointed out in a comment). You can easily get and set bits. To iterate just use a normal for loop.

Leave a Comment