I am writing a small calculator application in Java.
I have a TextField that I am using to display the user's input.
What I need to do next is process this string as a mathematical expression.
For instance, the string might be "2x5/6*(45+9)"
I want Java to "Evaluate" this string as a value
which, in this case should be the float value .03086......
What do I do?!
Start Free Trial