Note that for bitwise AND, OR, XOR of integer values etc you can use the java bitwise operators "&", "|", "^".
&
|
^