位运算符:对二进制进行运算,移位/求反。与/或/异或/
程序:
/*
* 位运算符
*/
public class Wei_operater{
public static void main(String[] args){
int x = 13;
int y = 7;
int z = 2;
System.out.println(x&y);//结果5
System.out.println(x|y);//结果15
System.out.println(z<<2);//结果为8
}
}