why r u taking only 5 bits?
Barry is taking 5 bits because the
java specification says so... 5 bits for int, 6 bits for long.
And the reason it is 5 bits is because that is all you need for an int. There are only 32 bits, so the max you can shift and still have something left is 31.
Henry