title: Issue with the "if" statement
body: <p>I'm taking a CS course and this code is giving me problems.</p>
  
  <pre><code>         while (statScan.hasNext()){
  
          currentStat = statScan.next();
          if (currentStat =  h);
          {       
              hStat++;
          }
          System.out.println("" + currentStat);
  </code></pre>
  
  <p>Look at the "if" statement. Java says "cannot convert string to boolean" and from my understanding <code>boolean</code> is a true/false sorta thing so what Java isn't understanding is how to evaluate and compare the strings.  How do I force it to do so?</p>