949596979899100101102103104
if (action.equals("Add")) { var.add(varVal); } else if (action.equals("Subtract")) { var.subtract(varVal); } else if (action.equals("Multiply")) { var.multiply(varVal); } else if (action.equals("Divide")) { var.divide(varVal); } } }