package ru.job4j.max;
/**
 * Maximum from two numbers.
 *
 * @author Dinar Khalfin (dinarhalfin@yahoo.com)
 * @version $Id$
 * @since 27.06.2017
 */
public class Max {
	/**
     * Result.
     */
    private int result;
	/**
	 * Maximum.
     * @param first - first.
	 * @param second - second.
	 * @return result.
	 */
    public int max(int first, int second) {

        result = (first > second) ? first : second;
        return result;
    }
	/**
	 * Get the result.
	 * @return result.
	 */
	public int getResult() {
        return this.result;
    }
}
@@ -180,64 +180,8 @@
 **%0D%0A
-     * Result.%0D%0A     */%0D%0A    private int result;%0D%0A%09/**%0D%0A
 %09 * 
@@ -321,18 +321,16 @@
 ond) %7B%0D%0A
-%0D%0A
         
@@ -419,22 +419,101 @@
 %09 * 
-Get the result
+Maximum.%0D%0A     * @param first - first.%0D%0A%09 * @param second - second.%0D%0A%09 * @param third - third
 .%0D%0A%09
@@ -515,38 +515,46 @@
 d.%0D%0A%09 * @return 
-result
+maximum number
 .%0D%0A%09 */%0D%0A%09public
@@ -562,56 +562,92 @@
 int 
-getResult() %7B%0D%0A        return this.result;%0D%0A    
+max(int first, int second, int third) %7B%0D%0A%09%09return max(max(first, second), third);%0D%0A%09
 %7D%0D%0A%7D

update for Max