title: charAt(0) gives unexpected output
body: <p>Doing some summer vacation exercises for Java, and I'm trying to verify social security (specific for my country)</p>
  <p>Something doesn't add up for me with charAt(0)
  Given social security &quot;300198&quot;, it prints &quot;Error 1&quot; at the moment.</p>
  <pre><code>public void authenticateCpr(Member member){
          if (member.getCpr().charAt(0) &gt; 3) {
              System.out.println(&quot;Error 1&quot;);
          }
          if (member.getCpr().charAt(0) == 3 &amp;&amp; member.getCpr().charAt(1) &gt; 9){
              System.out.println(&quot;Error 2&quot;);
          }
      }
  </code></pre>
  <p>What am I missing?
  Happy summer
  Kind regards</p>