//BitwiseOperator in java
class BitwiseOperator
class BitwiseOperator
{
public static void main(String arg[])
{
int a=3,b=5,c=-8,d=-2;
System.out.println("a&b= "+(a&b));
System.out.println("a|b= "+(a|b));
System.out.println("a^b= "+(a^b));
System.out.println("~a= "+~a);
System.out.println("a<<1= "+(a<<1));
System.out.println("d<<2= "+(d<<2));
System.out.println("c>>2= "+(c>>2));
System.out.println("c>>>2= "+(c>>>2));
}
}