LOGICAL NOT OPERATOR (!)
LOGICAL NOT OPERATOR (!)
Logical NOT Operator:
- We will used the logical NOT operator to inverse the condition.
- public class Notoperator
- {
- public static void main(String [] args)
- {
- int c= 23;
- int b= 45;
- System.out.println(!(c>b));
- }
- }
0 Comments