Thread: !done
View Single Post
Old 10-26-2009, 03:48 AM   PM User | #2
cs_student
Regular Coder

 
cs_student's Avatar
 
Join Date: Oct 2009
Location: ~/
Posts: 195
Thanks: 2
Thanked 22 Times in 22 Posts
cs_student is an unknown quantity at this point
I would assume that done is a boolean variable.

The statement you have created is a while loop which will loop checking each time if the conditional evaluates to true. In the case you provided the conditional would be the opposite of the value 'done', due to the '!' not operator.


Code:
done = true;
if(done) System.out.println("done == true");
if(!done) System.out.println("evaluated to false and won't prinnt");
__________________
Get GNU/Linux - Play Ogg - Vim
Using Arch Linux x86_64, Xorg + xmonad
cs_student is offline   Reply With Quote