+ 2
How to code a calculator that can evaluate equations like this "2+2*4/2"?
beginner question, the calculator i already made can only compute having on3 operation only. Is there any code that can evaluate them all?
4 Answers
- 1
Hey It should be easy with Math Js library. Check it out
- 1
Also saw you are using Java. You can use ScriptEngine class.
- 1
This code works well on Eclipse or NetBeans but for some reason it won't work on Solo learn Servers.
https://code.sololearn.com/c7tSDCmXSJA5/?ref=app