G.M G.M - 10 months ago 41
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);