I have five lists List<String>
. I want to get a single array which contains all elements from those lists, eliminating any repartitions. What could be the best way to do this?
`Edit: Can someone also comment on the performance of HashSet in comparision to List. I am concerned about performance, as I am doing this job while calculating the data to be displayed on a webpage. And no. of elements in the set would be high around 300-400, what parameters whould be suitable for the Set?
My elements in set, would be of this type:
<HColumn<String, String>>