How do I use charAt to check if the string doesn't start with a A-Z or a-z? : <pre><code>else if (!strEmail.toUppercase.charAt(0) &lt; 'A' || !strEmail.toUppercase.charAt(0) &gt; 'Z')
        {
            JOptionPane.showMessageDialog(null, "Must start with A through Z or a through z");
        }
</code></pre>

<p>I tried doing that but I kept getting an error message. Should I just use charAt alone? Am I better off using indexOf to check if the string or email starts with a letter lower case or upper. I was thinking combining index and char, but I tried that, and it didn't work. </p>
