public static float findSumOfAction(float sum, int action, float dataValue){
        if (action == 0){
            sum = sum + dataValue;
        }
        if (action == 1){
            sum = sum - dataValue;
        }
        if (action == 2 && sum != 0){
            sum = sum * dataValue;
        }
        if (action == 3 && sum != 0 && dataValue != 0){
            sum = sum / dataValue;
        }
        return sum;
    }