SyntaxFix
Write A Post
Hire A Developer
Questions
As previous answers, there is no standard API in Java for this.
You can add groovy jar files to your path and groovy.util.Eval.me("4*5") gets your job done.