public String NumbersCalculation(int i) {
        String s=String.valueOf(i);
        if (i==10)
            s="0.";
        if(checkCalculatorSequence(position -1) && position >0) {
            if (isANumber(calculatorSequence.get(position - 1))){
                if (i==10)
                    s=".";
                setCalculatorSequence(position -1, calculatorSequence.get(position -1) + s);
            }
                else {
                setCalculatorSequence(position, s);
            }
        }
        else{
            setCalculatorSequence(position, s);
        }
        if (i==10)
            hasDot=true;
        return getMessage();
    }