A good answer might be:
| ||||||||
NOT
The NOT operator in Java is this: ! --- exclaimation point. The NOT operator changes true to false and false to true, as seen in the table. This may seem like a silly thing to do, but often it is useful. Sometimes it is more natural to express a condition in a particular way, but the program logic calls for the reverse of what you have written. Time for the NOT opperator. Say that you are shopping for a new computer. You want more than 400 MHz and more than 32 Meg of RAM. Here is s program fragment:
As it is written, the program is wrong:
a computer that exceeds your requirements will be rejected.
| ||||||||
QUESTION 21:Fill in the blank so that the program fragment is correct. Click Here after you have answered the question |