当前位置:网站首页>In conditional structure, logical operator and bitwise operator, and the difference between logical operator (or) and bitwise operator

In conditional structure, logical operator and bitwise operator, and the difference between logical operator (or) and bitwise operator

2020-11-10 18:08:23 Irving the procedural ape

One Code display and running screenshots

1 &&

a.&& The code for is as follows

  int a=4;  int b=2;  if(a<-9&&b++>1){   System.out.println(" Yueyang Tower ");  }else{   System.out.println(" Yellow Crane Tower ");  }  System.out.println("a The value of is : "+a);  System.out.println("b The value of is : "+b);

b.&& The running screenshot of is shown below

2 &

a.& The code for is as follows

  int a=4;  int b=2;  if(a<-9&b++>1){   System.out.println(" Yueyang Tower ");  }else{   System.out.println(" Yellow Crane Tower ");  }  System.out.println("a The value of is : "+a);  System.out.println("b The value of is : "+b);

b.& The running screenshot of is shown below

3 ||

a.|| The code for is as follows .........

版权声明
本文为[Irving the procedural ape]所创,转载请带上原文链接,感谢