package ru.sbulygin;


//import static java.lang.Math.max;

/**
* Класс Max.
* @author sbulygin.
* @since 18.11.2016.
* @version 1.0.
*/

public class Max {

    /**
    * Добавляем поле first.
    */
    private int first;
    /**
    * Добавляем поле int second.
    */
    private int second;

    /**
    * Метод getFirst.
    * @return полученое значение first.
    */
    public int getFirst() {
        return this.first;
    }

    /**
    * Метод getSecond.
    * @return полученое значение second.
    */
    public int getSecond() {
        return this.second;
    }

    /**
    * Метод max.
    * Сравнивает 2 числа.
    * @param first первое число.
    * @param second второе число.
    * @return максимальное значение
    */
    public int max(int first, int second) {
        if (first == second) {
            return 0;
        } else if (first > second) {
            return first;
        } else {
            return second;
        }
    }
 }
@@ -180,23 +180,27 @@
 %D0%B5%D0%BC %D0%BF%D0%BE%D0%BB%D0%B5 
+int 
 first.%0A
-
     */%0A 
@@ -294,16 +294,297 @@
 econd;%0A%0A
+    /**%0A    * %D0%94%D0%BE%D0%B1%D0%B0%D0%B2%D0%BB%D1%8F%D0%B5%D0%BC %D0%BF%D0%BE%D0%BB%D0%B5 int third.%0A    */%0A    private int third;%0A%0A    /**%0A    * %D0%94%D0%BE%D0%B1%D0%B0%D0%B2%D0%BB%D1%8F%D0%B5%D0%BC %D0%BF%D0%BE%D0%BB%D0%B5 int value.%0A    */%0A    private int value;%0A%0A    /**%0A    * %D0%9C%D0%B5%D1%82%D0%BE%D0%B4 getValue.%0A    * @return %D0%BF%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%BE%D0%B5 %D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5 value.%0A    */%0A    public int getValue() %7B%0A        return this.value;%0A    %7D%0A%0A
     /**%0A
@@ -849,32 +849,171 @@
 .second;%0A    %7D%0A%0A
+    /**%0A    * %D0%9C%D0%B5%D1%82%D0%BE%D0%B4 getThird.%0A    * @return %D0%BF%D0%BE%D0%BB%D1%83%D1%87%D0%B5%D0%BD%D0%BE%D0%B5 %D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5 third.%0A    */%0A    public int getThird() %7B%0A        return this.third;%0A    %7D%0A%0A
     /**%0A    * %D0%9C%D0%B5
@@ -1334,16 +1334,16 @@
  else %7B%0A
-
         
@@ -1376,11 +1376,437 @@
  %7D%0A    %7D
+%0A%0A    /**%0A    * %D0%9C%D0%B5%D1%82%D0%BE%D0%B4 maxThree.%0A    * %D0%A1%D1%80%D0%B0%D0%B2%D0%BD%D0%B8%D0%B2%D0%B0%D0%B5%D1%82 3 %D1%87%D0%B8%D1%81%D0%BB%D0%B0.%0A    * @param first %D0%BF%D0%B5%D1%80%D0%B2%D0%BE%D0%B5 %D1%87%D0%B8%D1%81%D0%BB%D0%BE.%0A    * @param second %D0%B2%D1%82%D0%BE%D1%80%D0%BE%D0%B5 %D1%87%D0%B8%D1%81%D0%BB%D0%BE.%0A    * @param third %D1%82%D1%80%D0%B5%D1%82%D1%8C%D0%B5 %D1%87%D0%B8%D1%81%D0%BB%D0%BE.%0A    * @return %D0%BC%D0%B0%D0%BA%D1%81%D0%B8%D0%BC%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE%D0%B5 %D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5%0A    */%0A    public int maxThree(int first, int second, int third) %7B%0A        if (first == second %7C%7C second == third) %7B%0A            return 0;%0A        %7D else %7B%0A            return Math.max(first, Math.max(second, third));%0A        %7D%0A    %7D
 %0A %7D

add Max