I wanted to remove duplicates from ArrayList, I added the all the items to LinkedHashSet & then cleared ArrayList and then added back. Is there a better way to do this?