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.
My ultimate goal is to write an IF statement like this:
if("getrange")
{
while(1 <= 12)
{
output.println(MyArray[1])
1++
}
}
Any Ideas? I know this is pretty crude, let me know if I need to clarify. Thanks