How to remove same words from string array? Here is code example i want to use, but it does not working
String[] wordList = outString.toString().split(", ");
for (int i = 0; i < wordList.length; i++) {
for (int j = 0; j < wordList.length; j++) {
if ((wordList[i].equals(wordList[j]))&&(j!=i)) {
wordList.remove(wordList[i]);
}
}
}