public String doFibonacci(String inputValue) { calculatedValue = "The Fibonnaci sequence number of " + inputValue + " is " + Double.toString(mathTool.getFibNumber(Integer.parseInt(inputValue))); return calculatedValue; }
public String doFactorial(String inputValue) { calculatedValue = "The factorial of " + inputValue + " is " + Double.toString(mathTool.getFactorialNumber(Integer.parseInt(inputValue))); return calculatedValue; }
public void start() { calculatedValue = Double.toString(mathTool.getFibNumber(0)); }