An alternative is to use the not operator (!) twice. The first one returns a primitive boolean value, and then the second one flips the value to what you actually want. This method takes fewer ...