title: cannot enter into an if block - java
body: <p>The program is suppose to check if a string is consecutive including string such as zab and 901234. I wrote and exception to each so I can skip over 90 or za if they appear. Unfortunately I can't seem to get into the if block of code... I'm not sure why. If someone can help me get into this 901 it would be much appreciated.</p>
  
  <pre><code>   for (int i=0; i&lt;s.length()-1; i++){
          if (s.charAt(i) == 9 &amp;&amp; s.charAt(i + 1) == 0) {
              System.out.println("in");
          }
      }
  </code></pre>