title: Java - OR / AND characters (|| &&) illegal in if-statement
body: <p>I am coding a simple program using a scanner and now want to make sure the user only types "yes" or "no" by comparing the input to these words. I'm using a normal <code>if</code>-statement with <code>||</code> (pipes):</p>
  
  <pre><code>if (!input.equals("yes") || !input.equals("no")) {
      //do something
  }
  </code></pre>
  
  <p>Java (I am using BlueJ) complains about my pipes, it says: "<strong>illegal character: '\u00a0'</strong>"</p>
  
  <p><strong>What I tried</strong></p>
  
  <ul>
  <li>I copied &amp; pasted pipes from the wikipedia site to make sure I am really using correct pipe-characters</li>
  <li>restarted BlueJ</li>
  <li>tried using equal signs (&amp;&amp;), same error</li>
  <li>if I removed the second condition and the pipes it works</li>
  </ul>
  
  <p>Does anyone have an idea why it complains and how I can fix it?
  – Thanks in advance</p>