@@ -0,0 +1,1860 @@
+package ru.revdaalex.calculator;%0A%0A/**%0A * Calculator logic.%0A * Created by revdaalex on 07.06.2016.%0A */%0Apublic class Calculator %7B%0A%0A    /**%0A     * final result.%0A     */%0A    private double result;%0A%0A    /**%0A     * Summation of numbers.%0A     * @param first int first.%0A     * @param second int second.%0A     * @return result.%0A     */%0A    public double add(double first, double second)%7B%0A        return result = first + second;%0A    %7D%0A%0A    /**%0A     * Subtraction of numbers.%0A     * @param first int first.%0A     * @param second int second.%0A     * @return result.%0A     */%0A    public double sub(double first, double second)%7B%0A        return result = first - second;%0A    %7D%0A%0A    /**%0A     * Multiplication.%0A     * @param first int first.%0A     * @param second int second.%0A     * @return result.%0A     */%0A    public double mult(double first, double second)%7B%0A        return result = first * second;%0A    %7D%0A%0A    /**%0A     * Divide numbers.%0A     * @param first int first.%0A     * @param second int second.%0A     * @return result.%0A     */%0A    public double div(double first, double second)%7B%0A        return result = first / second;%0A    %7D%0A%0A    /**%0A     * Clear results.%0A     */%0A    public void clear()%7B%0A        this.result = 0;%0A    %7D%0A%0A    /**%0A     * Sinus.%0A     * @param value degree value.%0A     * @return result.%0A     */%0A    public double sinus(double value)%7B%0A        return result = Math.sin(value);%0A    %7D%0A%0A    /**%0A     * Cosine.%0A     * @param value degree value.%0A     * @return result.%0A     */%0A    public double cosine(double value)%7B%0A        return result = Math.cos(value);%0A    %7D%0A%0A    /**%0A     * Tangent.%0A     * @param value degree value.%0A     * @return result.%0A     */%0A    public double tangent(double value)%7B%0A        return result = Math.tan(value);%0A    %7D%0A%0A    /**%0A     * Return the result.%0A     * @return result.%0A     */%0A    public double getResult() %7B%0A        return result;%0A    %7D%0A%7D%0A

add Calculator.java