You need to sign in to do that
Don't have an account?
chaitanyakuamar Teru
apex development code
list<String> f1=new list<String>{'red','blue','yellow','orange'};
list<String>s1=new list<String>{'blue','black','yellow','green','blue'};
Q.compare both list's & print the common values along with count
list<String>s1=new list<String>{'blue','black','yellow','green','blue'};
Q.compare both list's & print the common values along with count
The approach in https://salesforce.stackexchange.com/questions/9910/comparing-values-between-two-lists should help you get started. Related: https://trailblazers.salesforce.com/answers?id=90630000000i8heAAA
https://developer.salesforce.com/forums/?id=9060G000000BeDbQAK
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you