Declared Boolean as False, turns up true
Here's a snippet from my code...
Boolean Add;
Double Answer;
Add = false;
if (Add == true);
{
Answer = (3 + 6);
System.out.print(Answer);
}
What baffles me is that at the end of my code it keeps evaluating and
printing 3 + 6 even though the code is specifically geared to make it NOT
show up. Any help would be appreciated.
No comments:
Post a Comment