
/**
 * Created by Helena on 14/01/2017.
 */
public class RemoveDuplicate {

    public static void removeDuplicates(String[] list) {
        for (int i = 0; i < list.length; i++)
        {
            String a = list[i];
            for(int j = 0; j< list.length; )

                if (a == list[j])
                {
                    list[j] = null; list[j] = list[list.length - j]; }
                else {
                    j++;

                }
        }
    }


}
@@ -348,16 +348,36 @@
  = null;
+%0A                   
  list%5Bj%5D

add removeduplicate.java