You need to sign in to do that
Don't have an account?

How To remove a Sobject Record using set collection in apex
public class a{ public static void m5() { set<Account> st=new Set<Account>{new Account(Name='Prade')}; st.add(new Account(Name='m')); system.debug(st); } }
How To remove account name with prade using remove method of set??Is It Possible
You can try this way:
Thanks
Niraj