Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

logical operators in java

-----------------------------------
| Logical Operato | Java Operator |       boolean wakeupTime = true;
-----------------------------------	      boolean sleeping = false;
|       AND       |       &&      |       if(wakeupTime && !sleeping){
|       OR        |       ||      |           makeCoffee();
|       NOT       |       !       |       }
-----------------------------------
Source by study.com #
 
PREVIOUS NEXT
Tagged: #logical #operators #java
ADD COMMENT
Topic
Name
8+6 =