RosettaCodeData/Task/Collections/Apex/collections-4.apex
2016-12-05 23:44:36 +01:00

3 lines
253 B
Text

Set<String> s1 = new Set<String>{'a', 'b + c'}; // Defines a new set with two elements
Set<String> s2 = new Set<String>(s1); // Defines a new set that contains the
// elements of the set created in the previous step