title: What does an exclamation mark mean in Java?
body: <p>I'd like to confirm the meaning of <code>!=</code> before a boolean expression in a control statement means the opposite:</p>
  
  <p>For example:</p>
  
  <pre><code>if (!networkConnected()) 
  </code></pre>
  
  <p>Does that mean "if the network is not connected"?</p>