当前位置:网站首页>And, or, not equal, operator
And, or, not equal, operator
2022-06-12 14:25:00 【Happy happy】
public class Demo03 {
public static void main(String[] args) {
boolean a = true;
boolean b = false;
System.out.println("a && b:"+(a&&b));
System.out.println("a || b:"+(a||b));
System.out.println("!(a || b):"+!(a||b));
// Short-circuit operation
int c = 5 ;
boolean d = (c<4)&&(c++<4);// A short circuit c<4 If it's wrong, it won't run back .
System.out.println(d);
System.out.println(c);//c The value of the or 5
System.out.println("=========================================");
}
}
边栏推荐
- Llvm pass-- virtual function protection
- 2000. reverse word prefix
- Solve the problem that IEEE latex template cannot display Chinese
- Tool notes - common custom tool classes (regular, random, etc.)
- 华为设备配置OSPF伪连接
- How test engineers transform test and open
- QT multi thread drawing and real-time refreshing method
- Unhandled exception stack overflow
- For cross-border e-commerce, the bidding strategy focusing more on revenue - Google SEM
- IAT hook hijacking process API call
猜你喜欢
![[early knowledge of activities] list of recent activities of livevideostack](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[early knowledge of activities] list of recent activities of livevideostack

Des File Encryptor based on MFC framework

Perfect ending | detailed explanation of the implementation principle of go Distributed Link Tracking

Player actual combat 13 create qtopengl project to promote window control and reload qoopenglwedge

PostgreSQL14安装使用教程

Player practice 17 xvideowidget

PMP agile knowledge points

C语言中主函数调用另外一个函数,汇编代码理解

如何使用android studio制作一个阿里云物联网APP

初学者入门阿里云haas510开板式DTU(2.0版本)--510-AS
随机推荐
For cross-border e-commerce, the bidding strategy focusing more on revenue - Google SEM
Create a slice slice pit using the make method
Player practice 18 xresample
拆改廣告機---業餘解壓
SystemC:SC_ Thread and SC_ METHOD
The difference between parameter and argument in C language
TestEngine with ID ‘junit-vintage‘ failed to discover tests
SystemC uses SC_ report_ Handler processing log printing
程序分析与优化 - 6 循环优化
Huawei equipment is configured with H virtual private network
Three common methods of C language array initialization ({0}, memset, for loop assignment) and their principles
Vs2012: cannot assign a value of type 'char *' to an entity of type 'lpwstr'
How to package QT program learning records with inno setup
公司运营中更注重转化的出价策略,如何实现? —Google sem
Shell notes
Tool notes - common custom tool classes (regular, random, etc.)
969. pancake sorting
Reverse the encryption parameters of a hot water software
IAT hook hijacking process API call
Player actual combat 16 xdecode class