package ru.job4j;

import org.apache.commons.lang3.ArrayUtils;

/**.
*
* @author Anton Vasilyuk
* @version 1.0
* @since 0.1
*/

public class Turn {
	/**.
	* Method for creating and flipping an array
	* @param array array
	* @return result
	*/
	public int[] back(int[] array) {

		ArrayUtils.reverse(array);
		return array;

	}
}
@@ -16,53 +16,8 @@
 j;%0A%0A
-import org.apache.commons.lang3.ArrayUtils;%0A%0A
 /**.
@@ -229,37 +229,216 @@
 ) %7B%0A
-%0A%09%09ArrayUtils.reverse(array);
+%09%09int x = array.length;%0A%09%09int z = array.length / 2;%0A%0A%09%09for (int i = 0; i %3C z; i++) %7B%0A%09%09%09int valueOne = array%5Bi%5D;%0A%09%09%09int valueTwo = array%5Bx - i - 1%5D;%0A%09%09%09array%5Bi%5D = valueTwo;%0A%09%09%09array%5Bx - i - 1%5D = valueOne;%0A%09%09%7D
 %0A%09%09r

add file for chapter_001_5.1