Dibyajyoti Das (Wissen Technology Private Limited) asked in #ApexMay 31, 2021, 5:09 PMhow to initialize Map<string,set<string>>1 answerSortSort by DateSort by Most HelpfulSort by DateAbhinav Thakur (Salesforce)May 31, 2021, 5:25 PMHi DibyajyotiMap<String, Set<String>> testMap = new Map<String, Set<String>>{ 'a' => new Set<String>{'x', 'y', 'z'}, 'b' => new Set<String>{'p', 'q', 'r'} }; If it helps, Please mark it as best answer.Thanks!
Abhinav Thakur (Salesforce)May 31, 2021, 5:25 PMHi DibyajyotiMap<String, Set<String>> testMap = new Map<String, Set<String>>{ 'a' => new Set<String>{'x', 'y', 'z'}, 'b' => new Set<String>{'p', 'q', 'r'} }; If it helps, Please mark it as best answer.Thanks!