Ok so lets say I have boolean x = false
. If I have a loop that says while (!x)
does this mean while x is NOT false (true) or while x is NOT true (false)?
EDIT: Ok I'm a bit confused, I think Im getting different answers. So if I have
int x=0;
boolean add1=false;
while (!add1){
x=1;
}
What is the final value of x in this case?