Microsoft
Software
Hardware
Network
Question : List
I have two List collection class. Example List l1 and l2.
In l1 there is 5 objects and in l2 there is 4 objects.
Take note that the values in each object is identitical.
Therefore I only want to know the missing object in
one of the vector. How is it done?.
Your help is kindly appreciate. Thank You.
Answer : List
List missing = new ArrayList(list1);
missing.removeAll(list2);
System.out.println(missing
);
Random Solutions
Backup Exec 12 - Catalog issue
change SQLserver 2005 to mix mode
Access 2007 Combo box synchronization
dynamic popup with checklistbox using ajax control toolkit
Apple Mail Notes keep reappearing after deletion
Excel Date Time format conversion yyyy-mmm-dd hh:mm:ss to mm/dd/yyyy hh:mm:ss
SSMS no tables shown in Query Designer
Publish Resource Calendar for all users
GridView control scroll bars are not visible on page reload
Crystal cross-tab page numbering