text: All about Bit Manipulation | Function to get the bit at the ith position ; Return true if the bit is set . Otherwise return false
code: static boolean getBit ( int num , int i ) { return ( ( num & ( 1 << i ) ) != 0 ) ; }