RosettaCodeData/Task/Collections/Apex/collections-4.apex

4 lines
253 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
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