+ Start a Discussion
santhosh konathala 8santhosh konathala 8 

How to check whether record is already existed or not in a list?

Best Answer chosen by santhosh konathala 8
santhosh konathala 8santhosh konathala 8
thanks for your feedback

All Answers

Jha dilipJha dilip
The List class does not have a contains method. Use the Set classor Map instead:You need to convert list to set or Map and then You can use the contains method to find duplicates
santhosh konathala 8santhosh konathala 8
thanks for your feedback
This was selected as the best answer