Skip to content

Tag: bitset

BitSet only grows with true bits and not false?

Currently with Java version “11.0.3” 2019-04-16 LTS on a Linux host (but would expect 8+ compatibility): in the context of computing a picture in order to send a binary bitmap to some hardware that only knows a 1-bit depth of display, I am using the BitSet for the first time and I get some disappo…

Where do we use BitSet and why do we use it in java?

I just found out that there is BitSet in java. There are already arrays and similar data structures. Where can BitSet be used? Answer As the above answer only explains what a BitSet is, I am providing here an answer of how I use BitSet and why. At first, I did not knew that the BitSet construct exists. I have