Collection removeAll ignoring case?
问题 Ok so here is my issue. I have to HashSet 's, I use the removeAll method to delete values that exist in one set from the other. Prior to calling the method, I obviously add the values to the Set s. I call .toUpperCase() on each String before adding because the values are of different cases in both lists. There is no rhyme or reason to the case. Once I call removeAll , I need to have the original cases back for the values that are left in the Set . Is there an efficient way of doing this