This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
... because I didn't want anyone who might already be confused to think shopSetUp might be a numeric value, like you can do in C++
But I suppose
might be better. I didn't mean to be misleading, as the matter of fact I wanted to unconfuse...
Joined: Oct 13, 2005
No, you write "if (shopSetUp)". It is a boolean, and that is how you write booleans. If it really is a boolean rather than a Boolean, you can't write .equals after it. Not if the compiler is awake, anyway