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/

4 comments:

  1. Sweet little script you got there!
    I'm going to start learning Java in May or June, hopefully this blog will give me some pointers :]

    /Following and Supporting.
    http://www.its-always-420.blogspot.com/

    ReplyDelete
  2. ok, you lost me with the picture. Not because you weren't clear, just because my brain is frozen:(

    ReplyDelete
  3. Hey I'm following your blog. Would like o follow mine? http://lukysherman.blogspot.com/

    ReplyDelete