I have a String array as follows
String [] toAddress = new String [] {'[email protected]','[email protected]','[email protected]'};
I would like to get the output as
'[email protected]','[email protected]','[email protected]'.
Could you please give some direction on how to achieve this?
String[] toAddress = new String[] { '[email protected]','[email protected]','[email protected]' };
? The code isn't legal Apex Code as it stands.