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.
Unless this is [homework] I would use a Set
[homework]
String[] array = Set uniqueWords = new HashSet(Arrays.asList(array));