You need to sign in to do that
Don't have an account?
sf sharath
please help me.here error coming as unexpected token solve yhe error please
set<string> colors = new set<string>{'Black'};
colors.add('Pink');
colors.add('Yellow');
colors.add('Yellow');
system.debug('color size :'+colors.size());
colors.remove('Pink');
system.debug('color size after clear :'+colors.size());
set<account> s = new set<account>();
for(account b : acc)
{
s.add(b);
}
system.debug('set size after clear :'+s.size());
Hi,
I don’t think there is any issue in this code. May be you are getting the error of something else which you don’t mention in this code.
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Please don't duplicate posts to this discussion board - your next post is basically asking the same question.