I have an exercise in java, here it is:
Create an 8 bit variable with value of 00001011.Reset an LSB bit.Set MSB bit. Set bit number 2. Check if bit number 4,5,6 are set.