public void set ( int index , boolean value ) { check ( index ) ; if ( value ) { array [ index / 8 ] |= ( 1 << ( index % 8 ) ) ; } else { array [ index / 8 ] &= ~ ( 1 << ( index % 8 ) ) ; } }
Set bit at index to value