G.M G.M - 1 year ago 63
Java Question

Where to enter the string in "evaluate simple math expression"

Deleted question
This question was deleted by G.M because the question was already answered

Answer Source

You need to pass your String to the eval function like this:

String myEquation = "8+4/2";
double answer = eval(myEquation);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download