You need to sign in to do that
Don't have an account?
Sree Salesforce
How to remove redundancy in List?
MissedCall
Copy it to set.
Rajesh Potnuru
Stop spamming with your interview questions
Ankit Arora
If it is mandatory to use list then you've to loop it up and check with the duplicate values, else as suggested above you can use sets.