How can I solve a math problem from a string in java?

前端 未结 0 466
梦如初夏
梦如初夏 2020-11-22 04:44

I want to know how I can solve math problems that are inside a string for example:

String problem = "(1 / (2 - cos(3^(-15 + 12)))) - 1";


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题