当前位置:网站首页>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("=========================================");
}
}
边栏推荐
- Create a slice slice pit using the make method
- Redis core configuration and advanced data types
- Player actual combat 12 QT playing audio
- 程序分析与优化 - 6 循环优化
- Two methods of implementing asynchronous calling function with QT
- Player practice 26 adding slider and window maximization
- Unhandled exception stack overflow
- [early knowledge of activities] list of recent activities of livevideostack
- En langage C, la fonction principale appelle une autre fonction et assemble le Code pour comprendre
- How to use Android studio to create an Alibaba cloud Internet of things app
猜你喜欢

公司运营中更注重转化的出价策略,如何实现? —Google sem

如果要打造品牌知名度,可以选择什么出价策略?

G++ error in compiling Win32 program: undefined reference to '__ imp_ GetStockObject‘

Player practice 20 unpacking thread

高考回忆录

How to use Android studio to create an Alibaba cloud Internet of things app

Player practice 15 xdemux and avcodecparameters

Pay attention to click and pursue more users to enter the website. What bidding strategy can you choose?

Introduction to database system (Fifth Edition) notes Chapter 1 Introduction

动态搜索广告智能查找匹配关键字
随机推荐
程序分析与优化 - 6 循环优化
chapter19 Allocation
拆改廣告機---業餘解壓
C語言中主函數調用另外一個函數,匯編代碼理解
Sorting out the differences between ABS () and Fabs () in C language
Leetcode 2176. 统计数组中相等且可以被整除的数对
Lua callinfo structure, stkid structure resolution
正点原子STM32F429核心板的插座型号
Tcp/ip network communication knowledge record
Player actual combat 23 decoding thread
Write policy of cache
Is Shell Scripting really a big technology?
初学者入门阿里云haas510开板式DTU(2.0版本)--510-AS
工业机械臂(机器人)视觉定位引导系统
En langage C, la fonction principale appelle une autre fonction et assemble le Code pour comprendre
Analysis of lua source code
WinDbg preview debug analysis createtoolhelp32snapshot
Chapter IV expression
Codeforces Round #798 (Div. 2)(A~D)
Shell脚本到底是什么高大上的技术吗?