Operator
|
Description
|
Example
|
== (equal to)
|
Checks if the values of two operands are equal or
not, if yes then condition becomes true.
|
(A == B) is not true.
|
!= (not equal to)
|
Checks if the values of two operands are equal or
not, if values are not equal then condition becomes true.
|
(A != B) is true.
|
> (greater than)
|
Checks if the value of left operand is greater
than the value of right operand, if yes then condition becomes true.
|
(A > B) is not true.
|
< (less than)
|
Checks if the value of left operand is less than
the value of right operand, if yes then condition becomes true.
|
(A < B) is true.
|
>= (greater than or
equal to)
|
Checks if the value of left operand is greater
than or equal to the value of right operand, if yes then condition becomes
true.
|
(A >= B) is not true.
|
<= (less than or equal
to)
|
Checks if the value of left operand is less than
or equal to the value of right operand, if yes then condition becomes true.
|
(A <= B) is true.
|
&& (logical and)
|
Called Logical AND operator. If both the operands
are non-zero, then the condition becomes true.
|
(A && B) is false
|
|| (logical or)
|
Called Logical OR Operator. If any of the two
operands are non-zero, then the condition becomes true.
|
(A || B) is true
|
! (logical not)
|
Called Logical NOT Operator. Use to reverses the
logical state of its operand. If a condition is true then Logical NOT
operator will make false.
|
!(A && B) is true
|
whaust
2019年12月29日 星期日
Java Boolean Operator
訂閱:
張貼留言 (Atom)
Popular
-
При планировании проекта разработки программного обеспечения я часто сталкиваюсь с помощником, который задает мне вопрос: в чем разница межд...
-
소프트웨어 개발 프로젝트를 계획 할 때 종종 어시스턴트가 질문을하는데 SA, SD, SE의 차이점은 무엇입니까? 이전에이 질문을 해본 적이 있는데 상당히 당혹 스럽습니다. 시스템 분석과 시스템 설계와 시스템 엔지니어링의 차이점은 무엇입니까? SA와...
-
VOC(Voice of Customer)即「顧客之聲」 ,指的是從顧客處收集來的意見、回饋、需求或期望。這些資訊通常來自於調查、反饋表單、客服查詢、產品評論或社交媒體互動等多種管道。企業透過VOC數據來了解顧客對產品或服務的看法,以便改進產品設計、提升服務質量,並最終提高顧客...
沒有留言:
張貼留言