How to convert Set to List in Salesforce?

Sample Code:

        Set<Integer> i = new Set<Integer>();
        i.add(1);
        i.add(2);
        i.add(3);
       
        List<Integer> s = new List<Integer>();
        s.addAll(i);

No comments:

Post a Comment