Convert List to Set #inSalesforce

Convert List to Set #inSalesforce


List<String> oList = new List<String>();
Set<String> oSet = new Set<String>();
oList.add('sample1');
oList.add('sample2');
oSet.addAll(oList);

Comments