I have the following code:
package com.fdm.calculator;
public class Calculator {
public double evaluate(String expression){
return Double.parseDouble(expression);
}
}
How do I invoke this method. For example I want to do calculator.evaluate("5"), which should return 5.0.
I want the output on the screen.
I am also running a j unit test case along side this, so I am not sure how that changes things.