question: 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 ; }
target:  creates a BitSet based on a string representation of binary digits. 