package ru.pravvich;
/**
*Implements Calculate. 
*Supports repeated using previous calculation.
*/
public class Calculate {
	double resoult;

	public static void main(String[] args) {
	
	}
	

/**
*The add operations.
*@param first - first argument, second - second argument
*/ 

	public void add(double first, double second) {
	this.resoult = first + second;
	
	}


/**
*substract operation.	
*@param first - first argument, second - second argument
*/ 

	public void substract(double first, double second) {
	this.resoult = first - second;
	
	}


/**
*Mult operation.
*@param first - first argument, second - second argument
*/ 

	public void mult(double first, double second) {
	this.resoult = first * second;
	
	}


/**
*Division operation.
*@param first - first argument, second - second argument
*/ 

	public void div(double first, double second) {
	
	if (second != 0) {
	this.resoult = first / second;
	} else {
		System.out.println("Делить на ноль нельз¤!");
	}
	
	}

//The and...

}




@@ -132,15 +132,82 @@
  res
-o
 ult;%0A%0A
+    public double getResult() %7B%0A        return this.result;%0A    %7D%0A%09%0A
 %09pub
@@ -250,14 +250,10 @@
 %7B%0A%09%0A
-%09%7D%0A
 %09%0A
-%0A
 /**%0A
@@ -384,33 +384,32 @@
 ond) %7B%0A%09this.res
-o
 ult = first + se
@@ -565,33 +565,32 @@
 ond) %7B%0A%09this.res
-o
 ult = first - se
@@ -735,33 +735,32 @@
 ond) %7B%0A%09this.res
-o
 ult = first * se
@@ -909,16 +909,17 @@
 nd) %7B%0A%09%0A
+%09
 %09if (sec
@@ -926,24 +926,25 @@
 ond != 0) %7B%0A
+%09
 %09this.resoul
@@ -940,17 +940,16 @@
 this.res
-o
 ult = fi
@@ -962,16 +962,17 @@
 second;%0A
+%09
 %09%7D else 
@@ -1021,16 +1021,17 @@
 %D1%8C%D0%B7%C2%A4!%22);%0A
+%09
 %09%7D%0A%09%0A%09%7D%0A
@@ -1050,8 +1050,9 @@
 .%0A%0A%7D%0A%0A%0A%0A
+%7D

add chapter_001\lesson_2\src\main\java\ru\pravvich\Calcuate.java