public static int setBit ( int value , int bitNumber , boolean bitValue ) { if ( bitValue ) { return setBitOn ( value , bitNumber ) ; } else { return setBitOff ( value , bitNumber ) ; } }
Set bit to 0 or 1 in the given int .