I'm trying to build a android calculator apps. I'll have some String such as "13+23-3"
or "40*2+3"
.
Is there a method can directly convert this kind of strings into double (with correct operator precedence)? Or i have to write a method myself?
I'd tried Double.parseDouble() and Double.valueOf() but both failed to convert it.