How to convert string to math equation? [duplicate]
Possible Duplicate:
Java: Parse a mathematical expression given as a string and return a number
Hello there,
I would like to ask you, if exist some way how to convert string "1+开发者_C百科2+3" to math equation? Exist for this purpose some function or method in Java?
Thanks for hints.
It's not part of the standard API.
But I implemented it in my project, you can have a look here. https://github.com/MarkyVasconcelos/Towel/wiki/Expression
This would necessarily depend on the implementation of the Equation
class you're using. Check its API.
精彩评论