package apetrov;

public class RemoveDuplicateArray{

	public String[] values;

	public RemoveDuplicateArray(String[] values){
		this.values = values;
	}

	public String[] rmDuplicate(String[] values){
		
		int sizeResult = this.values.length;

		for(int i = 0; i < this.values.length; i++){
			if(this.values[i] != null){
				for(int j = i + 1; j < this.values.length; j++){
					if(this.values[i].equals(this.values[j])){
						this.values[j] = null;
						sizeResult--;
					}
				}
			}
		}
		int index = 0;
		String[] result = new String[sizeResult];
		for(int i = 0; i < this.values.length; i++){
			if(this.values[i] != null){
				result[index] = this.values[i];
				index++;
			}
		}
	return result;
	}
}
@@ -11,16 +11,67 @@
 etrov;%0A%0A
+/**%0A * %D0%9A%D0%BB%D0%B0%D1%81%D1%81 %D0%B4%D0%BB%D1%8F %D1%83%D0%B4%D0%B0%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F %D0%B4%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%82%D0%BE%D0%B2 %D0%B2 %D0%BC%D0%B0%D1%81%D1%81%D0%B8%D0%B2%D0%B5%0A */%0A
 public c
@@ -124,16 +124,105 @@
 alues;%0A%0A
+%09/*%0A%09* %D0%9C%D0%B5%D1%82%D0%BE%D0%B4 %D1%83%D0%B4%D0%B0%D0%BB%D1%8F%D0%B5%D1%82 %D0%B4%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%82%D1%8B %D0%B2 %D0%BC%D0%B0%D1%81%D1%81%D0%B8%D0%B2%D0%B5%0A%09* @param String%5B%5D values%0A%09* @return result%0A%09*/%0A
 %09public 
@@ -845,8 +845,9 @@
 lt;%0A%09%7D%0A%7D
+%0A

Update RemoveDuplicateArray