Here's ultimately what I need to do:
I have an ArrayList called originalList that looks like
[pans, pots, sit, it's, naps]
and another ArrayList called modifiedList that takes originalList and removes punctuation and uppercase and then sorts the list. So it would look like
[anps, anps, ist, ist, opst]
modifiedList's purpose is to tell me what words are anagrams of each other. An anagram is a word that consist of the same letters. The problem is I need to sort originalList to match modifiedList so that I can output what words are anagrams of each other. originalList would need to become [pans, naps, sit, it's, pots]. Suggestions?
originalListwhen you are preparingmodifiedListitself