Convert BitSet to int
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2473597/bitset-to-and-from-integer-long">BitSet to and from integer/long</a>  </p>
</blockquote>



<p>How to convert class BitSet class to int ( I always have Bitset(8) ?
Is  there any easy way or I need to loop through bitset ?</p>
