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


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

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