Showing posts with label Logical - NOT. Show all posts
Showing posts with label Logical - NOT. Show all posts

Wednesday, December 15, 2010

Logical NOT operator

The third type of logical operator ! applies to one boolean operands and the result is the inverse of the operand value.So if the value of a boolean variable state, is true then the expression ! state has the value false and if it is false then ! state valuates true. To see how the operators is used with an expression you could rewrite the code fragment you used to provide discounted ticket price as follow.


My dear friend please give me your comments :)
http://worldjavasocietyandme.blogspot.com/