I want to make a calculator App. For this I need to be able to split a string into two when there is an operand between them. I tried my code like this:
String[] operation= display.split(Pattern.quote(currentOperator)); currentOperator contain my operator i.e + - / or *
I tried entering 12 + 12
When I displayed my operation[0] and operation1 result shown is 1 and +1 enter image description here