With the unsigned right-shift operator (>>> and the left shift operator, the new bits are always set to 0.
The result of ~x will always be the value ((-x) -1)
Hope it helps.
Joined: Aug 03, 2002
Hello "grr rrr"-
Welcome to JavaRanch.
On your way in you may have missed that we have a JavaRanch Naming Policy for displayed (screen) names. Your displayed name must consist of a first name (or an initial), a space, and a family name (in that order) and not be obviously fictitious. Since yours "grr rrr", does not conform with it, please take a moment to change it, which you can do right here.
Posters with nonconforming displayed names will be locked out of JavaRanch after a few posts using those names.