package ru.job4j;

/**.
 * Max выбор максимального по значению числа.
 *
 * @author Anton Vasilyuk
 * @version $Id$
 * @since 0.1
 */
public class Max {

	/**.
	* сравнение
	* @param first первый аргумент
	* @param second второй аргумент
	* @param third третий аргумент
	* @return возвращает наибольшее значение
	*/
	public int max(int first, int second, int third) {

		int result = first > second ? first : second;
		return result > third ? result : third;

	}

}
@@ -147,16 +147,234 @@
  Max %7B%0A%0A
+%09/**.%0A%09* %D1%81%D1%80%D0%B0%D0%B2%D0%BD%D0%B5%D0%BD%D0%B8%D0%B5%0A%09* @param first %D0%BF%D0%B5%D1%80%D0%B2%D1%8B%D0%B9 %D0%B0%D1%80%D0%B3%D1%83%D0%BC%D0%B5%D0%BD%D1%82%0A%09* @param second %D0%B2%D1%82%D0%BE%D1%80%D0%BE%D0%B9 %D0%B0%D1%80%D0%B3%D1%83%D0%BC%D0%B5%D0%BD%D1%82%0A%09* @return %D0%B2%D0%BE%D0%B7%D0%B2%D1%80%D0%B0%D1%89%D0%B0%D0%B5%D1%82 %D0%BD%D0%B0%D0%B8%D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%B5%D0%B5 %D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5%0A%09*/%0A%09public int max(int first, int second) %7B%0A%0A%09%09return first %3E second ? first : second;%0A%0A%09%7D%0A
 %09/**.%0A%09*
@@ -473,32 +473,32 @@
 %D1%82%D1%80%D0%B5%D1%82%D0%B8%D0%B9 %D0%B0%D1%80%D0%B3%D1%83%D0%BC%D0%B5%D0%BD%D1%82%0A
-
 %09* @return %D0%B2%D0%BE%D0%B7%D0%B2%D1%80
@@ -586,94 +586,45 @@
 %0A%0A%09%09
-int result = first %3E second ? 
+return max(max(
 first
- :
+,
  second
-;%0A%09%09return result %3E third ? result : third
+), third)
 ;%0A%0A%09

add file for chapter_001_3.3