package ru.job4j.maximum;

/**
* Max class.
* @author Yury Chuksin (chuksin.yury@gmail.com)
* @since 18.01.2017
*/
public class Max {

	/**
	* maxFromTwo method compare two variables and takes maximum.
	* @param first first of two compared variables
	* @param second second of two compared variables
	*/
	public maxFromTwo(int first, int second) {
		int resultMax = 0;
		if (first > second) {
			resultMax = first;
		} else				{
			resultMax = second;
		}
		return resultMax;
	}

	/**
	* maxFromTree method compare tree variables and takes maximum.
	* @param first first of tree compared variables
	* @param second second of tree compared variables
	* @param third of tree compared variables
	*/
	public maxFromThree(int first, int second, int third) {
		int maxFthree = (first > second) ? first : second;
		maxFthree = (maxFthree > third) ? maxFthree : third;
		return maxFthree;
	}
}
@@ -764,32 +764,41 @@
 three = 
+maxFromTwo
 (first
- %3E
+,
  second)
  ? first
@@ -793,25 +793,8 @@
 ond)
- ? first : second
 ;%0A%09%09
@@ -809,30 +809,19 @@
 e = 
-(
 maxF
-three %3E third) ? 
+romTwo(
 maxF
@@ -829,16 +829,16 @@
 hree
- :
+,
  third
+)
 ;%0A%09%09

Make corrections in task 3.3