I was asked to write my own implementation to remove duplicated values in an array. Here is what I have created. But after tests with 1,000,000 elements it took very long ti
public void removeDup(){ String[] arr = {"1","1","2","3","3"}; boolean exists = false; String[] arr2 = new String[arr.length]; int count1 = 0; for(int loop=0;loop