I have two arrayList and I need to compare them, get the values that are uniques and build a new array with them, problem is some of the values are the same but in uppercase so they shouldn't show as unique value. This is my code alredy, works but is to slow
for (i = 0; i < parsedLocal.size(); i++) {
for (j = 0; j < parsedRemote.size(); j++) {
if (parsedLocal[i].toUpperCase().equals(parsedRemote[j].toUpperCase())){
parsedLocal.remove(parsedLocal[i])
}
}
}
Then I found this solution that is faster but doesn't compare uppercases or lowercases, any idea on how to do that with that method or similar?
parsedLocal.removeAll(parsedRemote);