I'm having a custom object say obj.In my apex class I'm having two lists of this object
In list<obj__c> list1 ---- I'll be getting say suppose 3 Records &
In list<obj__c> list2 ---- I'll be getting say suppose 2 Records(this 2 records are of list1 records and will not be greater than list1).
My requirement here is I want to insert the 3rd record which is not present in list2. Every Record consists of unique Name.What would be the best way to solve this.Any help on this pls
My approach is something like this
if(list1.size() > list2.size()){
//map my name
}