Ok, so im working on a mini problem which takes an input and solve it..
So if the user inputs : 45 + 64. then the code will input an answer.
However im having trouble with getting the location of the symbol.
E.G I use substrings to get the values
Now the issue is finding the SymbolLocation...
String X = input.substring(0, SymbolLocation);
String Y = input.substring(SymbolLocation + 1, input.length());
I used the method "index.of()" but that will only work with ONE symbol. How can i make it find the first instance of any math symbol (+,-,*,/) ?