@@ -0,0 +1,824 @@
+package ru.job4j;%0A%0Aimport java.util.Arrays;%0A%0A/**.%0A*%0A* @author Anton Vasilyuk%0A* @version 1.0%0A* @since 0.1%0A*/%0A%0Apublic class ArrayDublicate %7B%0A%09/**.%0A%09* method for delete dublicate%0A%09* @param array array%0A%09* @return result%0A%09*/%0A%09public String%5B%5D remove(String%5B%5D array) %7B%0A%09%09int summdublicate = 0;%0A%09%09for (int i = 0; i %3C array.length; i++) %7B%0A%09%09%09String wordOne;%0A%09%09%09wordOne = array%5Bi%5D;%0A%09%09%09for (int y = 0; y %3C array.length; y++) %7B%0A%09%09%09%09String wordTwo = array%5By%5D;%0A%09%09%09%09if (wordOne == wordTwo & i != y) %7B%0A%09%09%09%09%09array%5Bi%5D = null;%0A%09%09%09%09%09summdublicate++;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09for (int z = 0; z %3C array.length; z++) %7B%0A%09%09%09for (int a = array.length - 2; a %3E= 0; a--) %7B%0A%09%09%09%09if (array%5Ba%5D == null) %7B%0A%09%09%09%09%09String b = array%5Ba%5D;%0A%09%09%09%09%09array%5Ba%5D = array%5Ba + 1%5D;%0A%09%09%09%09%09array%5Ba + 1%5D = b;%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return Arrays.copyOf(array, array.length - summdublicate);%0A%09%7D%0A%7D

add file for chapter_001_5.3