Parse input from string containing ints
<p>I am trying to get input from a string containing ints. So when a user types in the command "getrange(1,12)" I need to read the inital command as a string, and the two numbers inside it as an ints. I was thinking I could do a number of Splits() but I think that might get messy. In addition Split() keeps them as strings I think. </p>

<p>My ultimate goal is to write an IF statement like this: </p>

<pre><code>if("getrange")
{

    while(1 &lt;= 12)
    {
        output.println(MyArray[1])
        1++
    }
}
</code></pre>

<p>Any Ideas?
I know this is pretty crude, let me know if I need to clarify. Thanks </p>
