Storing int value of bitmask - extract 1 valued bits
- by yankee2905
I am calculating the int equivalent of a given set of bits and storing that in memory. From there, I would like to determine all 1 value bits from the original bitmask. Example:
33 -- [1,6]
97 -- [1,6,7]
Ideas for an implementation in Java?