Combining 3 lists into single collection with unique values

I have 3 lists in Java as below

List list1 = query1MysqlRepository.getprocessIds();

List list2 = query2MysqlRepository.getprocessIds();

List list3 = query3MysqlRepository.getprocessIds();

I want to combine the above three Integer List into a single collection such that the collection doesn't contain any duplicate values

Collection = list1 + list2 + list3

Please suggest what collection can be used here....

Read More »

By: StackOverFlow - Wednesday, 7 November

Related Posts