Create Bitwise Operations in Java