I have an ArrayList which is getting populated with string array. At the end of the process I have to remove the duplicates string arrays added to the list. I tried doing the conventional solution of using LinkedHashSet and populating into a new Array List, but in vein.
List<String[]> OrgList = new ArrayList<String[]>();
//String arrays added to OrgList
.....
.....
List<String[]> NewList = new ArrayList<String[]>(new LinkedHashSet<String[]>(OrgList));
Is there any other way to remove duplicates in this scenario?
Thanks in Advance.