I want to do calculator that do sums but just in one index like this:
args = "2+2"
I won't do your homework for you, but I'll split it in few steps:
Have a look at
String.substring for that. Make sure you check for -1 for
int foo = Integer.parseInt(String s);