What does the logical NOT operator (!) do in Java?
The ! operator compares two boolean values and returns true if they are not equal.
You're close! The NOT operator doesnâ€™t compare two values. It negates a single boolean expression.
Can you explain how the NOT operator works with a single boolean value, like 'true'?