import org.pureprogrammer.Utils; public class Operators5 { public static void main(String[] args) { final int a = 0x5555AAAA; final int b = 0x36C36CF; System.out.println(Utils.format("Bitwise a AND b : {0:08x}", (a & b))); System.out.println(Utils.format("Bitwise a OR b : {0:08x}", (a | b))); System.out.println(Utils.format("Bitwise a XOR b : {0:08x}", (a ^ b))); System.out.println(Utils.format("Compliment a : {0:08x}", (~a))); System.out.println(Utils.format("Compliment b : {0:08x}", (~b))); } }