package ru.revdaalex.oodsrp;

/**
 * Calculator logic.
 * Created by revdaalex on 07.06.2016.
 */
public class Calculator {

    /**
     * final result.
     */
    private int result;

    /**
     * Summation of numbers.
     * @param first int first.
     * @param second int second.
     * @return result.
     */
    public int add(int first, int second){
        return result = first + second;
    }

    /**
     * Subtraction of numbers.
     * @param first int first.
     * @param second int second.
     * @return result.
     */
    public int sub(int first, int second){
        return result = first - second;
    }

    /**
     * Multiplication.
     * @param first int first.
     * @param second int second.
     * @return result.
     */
    public int mult(int first, int second){
        return result = first * second;
    }

    /**
     * Divide numbers.
     * @param first int first.
     * @param second int second.
     * @return result.
     */
    public int div(int first, int second){
        return result = first / second;
    }

    /**
     * Clear results.
     */
    public void clear(){
        this.result = 0;
    }

    /**
     * Return the result.
     * @return result.
     */
    public int getResult() {
        return result;
    }
}

@@ -167,19 +167,22 @@
 private 
-int
+double
  result;
@@ -330,27 +330,33 @@
 lic 
-int add(int
+double add(double
  first, 
 int 
@@ -343,35 +343,38 @@
 d(double first, 
-int
+double
  second)%7B%0A      
@@ -563,27 +563,33 @@
 lic 
-int sub(int
+double sub(double
  first, 
 int 
@@ -576,35 +576,38 @@
 b(double first, 
-int
+double
  second)%7B%0A      
@@ -788,28 +788,34 @@
 lic 
-int mult(int
+double mult(double
  first, 
 int 
@@ -802,35 +802,38 @@
 t(double first, 
-int
+double
  second)%7B%0A      
@@ -1014,27 +1014,33 @@
 lic 
-int div(int
+double div(double
  first, 
 int 
@@ -1035,19 +1035,22 @@
  first, 
-int
+double
  second)
@@ -1269,19 +1269,22 @@
  public 
-int
+double
  getResu

update Calculator.java