Is there a std::bitset equivalent (or similar) in Java?
<p>I am looking for a c++ std::bitset equivalent or a similar functionality implementation in Java (1.6 specifically). I tried java.util.BitSet but I am finding that it is not quite similar.</p>

<p>The operations I need are the usual bitwise operations such as AND, OR, etc. If possible, I'd like to be able to set the length of the bitset dynamically (which is unsupported in std::bitset). Can anyone provide a recommendation? Thanks.</p>
