• Post Reply Bookmark Topic Watch Topic
  • New Topic

Quick Explaination of ! Please?  RSS feed

 
Melisa Mitchell
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have this for a line of code..



Im just not sure what the ! means, I know that != means not equal to..
I looked up Java Operators and seen this, but dont understand it.

! Logical compliment operator; inverts the value of a boolean

If anyone can explain it to me, that would be great!
Thank You,
LivinDeadGurl
[ October 29, 2008: Message edited by: Melisa Mitchell ]
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please give meaningful subject line

Originally posted by Melisa Mitchell:


! Logical compliment operator; inverts the value of a boolean



example,




Hope This Helps
[ October 29, 2008: Message edited by: seetharaman venkatasamy ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66304
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!