Summer '23 Iterable Interface using Set Type

 avatar
unknown
apex
2 years ago
157 B
8
Indexable
Set<String> components = new Set<String>{'AI', 'Data', 'CRM'};
String dataCloud = 'Data Cloud = ' + String.join(components, ' + ');

System.debug(dataCloud);
Editor is loading...