Hi All,
Today I'm going teach you guys what is the logical NOT operator in Java and how to use it. Logical NOT operator is symbolize by using "!".
By using this operator we can inverts the value of boolean variable
Example
boolean x = true
value of !x is false
Let's try this in code