G.M G.M - 1 month ago 7
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

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

String myEquation = "8+4/2";
double answer = eval(myEquation);
Comments