Java How to convert String operation to arithmatic operation?

前端 未结 0 690
清歌不尽
清歌不尽 2020-12-21 02:25

i have a String operation: "5 + 5 - 2 * 10 + 30 / 2" and i wanna convert it to: 5 + 5 - 2 * 10 + 30 / 2. I tried to use parseInt() but it did\'t help(

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