title: unreachable statement
body: <p>I have loop designed to validate the user input on a question, it was working fine until I added this;</p>
  
  <pre><code>        if (userInput.charAt(0) &gt; NUMCOLS &amp;&amp; userInput.charAt(0) &lt; 0);
          {
              System.out.println("Error, " + userInput + " is an invalid move.");
              continue;
          }
  </code></pre>
  
  <p>before this</p>
  
  <pre><code>        if (userInput.charAt(2) !='-')
          {
              System.out.println("Error, " + userInput + " is an invalid move.");
              continue;
          }
  </code></pre>
  
  <p>Now whenever I try to compile I get an error stating that this is an <strong>unreachable statement</strong>, what is causing this?</p>