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/
Simple and nice article , keep posting buddy.
ReplyDeleteJavin
Why String is immutable in Java
Sweet little script you got there!
ReplyDeleteI'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/
ok, you lost me with the picture. Not because you weren't clear, just because my brain is frozen:(
ReplyDeleteHey I'm following your blog. Would like o follow mine? http://lukysherman.blogspot.com/
ReplyDelete