I am making a program based on string processing in Java in which I need to remove duplicate strings from a string array. In this program, the size of all strings are same.
Set set = new HashSet(); Collections.addAll(set, array);
or start with
for(int s=0;s