private BitSet createBitSet(final String binaryString){
  final BitSet bset=new BitSet(binaryString.length());
  boolean bitTrue=false;
  for (int i=0; i < binaryString.length(); i++) {
    if (binaryString.charAt(i) == '1') {
      bitTrue=true;
    }
 else {
      bitTrue=false;
    }
    bset.set(i,bitTrue);
  }
  return bset;
}

private BitSet createBitSet ( final String binaryString ) { final BitSet bset = new BitSet ( binaryString . length ( ) ) ; boolean bitTrue = false ; for ( int i = 0 ; i < binaryString . length ( ) ; i ++ ) { if ( binaryString . charAt ( i ) == '1' ) { bitTrue = true ; } else { bitTrue = false ; } bset . set ( i , bitTrue ) ; } return bset ; }
creates a bitset based on a string representation of binary digits .
