News

Bitwise complement: Given ~operand, where operand must be of character or an integer type, flip operand‘s bits (1s to 0s and 0s to 1s) ... Bitwise operators in Java (BitwiseOp.java) ...
The unary bitwise complement operator "~" inverts a bit pattern. it can be applied to any of the integral types, making every "0" a "1" and every "1" a "0". For example, a byte contains 8 bits; ...