Java - charAt with multiple answers
<p>I'm having some trouble with my code, I am trying to test if a position in a char is equal to an integer. The way I have it setup is like so:</p>

<pre><code>    for(int i = 0; i &lt; str.length(); i++) {
        if(str.charAt(i) == '[1234567890]') {
            System.out.println(str);
        }
    }
</code></pre>

<p>However I'm getting the error "unclosed character literal" when I try to compile. Does anyone know why I'm getting an error, or can explain a more simple way to do this?</p>
