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);
Set<String> oSet = new Set<String>();
oList.add('sample1');
oList.add('sample2');
oSet.addAll(oList);
Comments
Post a Comment