package ru.ematveev.arraydublicate;

public class ArrayDublicate{

	public String [] arrayDublicate(String [] array){


			int x = array.length;    
			
			for(int i = 0; i < x; i++){
					
				for(int j = 1; j < x; j++){
					
					if(array[i] == null) break;	
							
						if(array[i].equals(array[j+i])){
							array[i] = null;
							}				 				
					
					}

							x--;
				}
					return array;
	}
}






@@ -112,17 +112,16 @@
 rray)%7B%0A%0A
-%0A
 %09%09%09int x
@@ -140,14 +140,53 @@
 gth;
-    %0A%09
+%0A%09%09%09int p = array.length;%0A%09%09%09int a = 0;%0A%09%09%09  
 %09%09%0A%09
@@ -386,22 +386,15 @@
 %09%09%09%0A
-%09%09%09%09%09%0A
 %09%09%09%09%09%7D%0A
-%0A
 %09%09%09%09
@@ -404,24 +404,173 @@
 x--;%0A%09%09%09%09%7D%0A%09
+%09%09%09%09for(int k = 0; k %3C p; k++)%7B%0A%09%09%09%09%09%09if(array%5Bk%5D != null)%7B%09%09%09%09%0A%09%09%09%09%09%09%09array%5Ba%5D = array%5Bk%5D;%0A%09%09%09%09%09%09%09array%5Bk%5D = null;%0A%09%09%09%09%09%09%09a++;%09%09%09%0A%09%09%09%09%09%09%7D%09%09%0A%09%09%09%09%09%7D%0A%0A
 %09%09%09%09return a
@@ -581,12 +581,18 @@
 ;%0A%09%7D%0A%7D%0A%0A
+%09
 %0A%0A
-%0A%0A
+%09%09%09%09%09%09%09

change ArrayDublicate.java