I am trying to shift the number 1 to the right.
So originally, the bit mask should be:
1
Then, the bit mask should be:
01
Below is my code:
int bitmask = 1;
bitmask >>= 1;
System.out.println(Integer.toBinaryString(bitmask));
The output however, is just:
0