java.util.BitSet simulates bit strings longer than 64 bits using an internal array of longs. Normally you would use a primitive long for a BitSet <= 64 bits long or an int for a BitSet <= 32 bits long.
BitSet supports and, or, xor, andNot and clear. It does not have a shift, but you can copy bits, one at a time with get/set.
Two other techniques for dealing with sets include HashSet and EnumSet.
available on the web at:
optional Replicator mirror
Your face IP:[126.96.36.199]
|Feedback||You are visitor number 6,544.|