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
better way to retreive a value for the last entry in a table
new keyboard not recognised before logon
how to do selective sorting based on contents of a column
Upgrade PHP to 5.3 version (or 5.2 eventually) on Plesk 9.5.2
TRY and CATCH
Import vs. link
Access cascading combo boxes
Excel and Sharepoint locking issue
Unable to view certain websites internally on several OSx boxes
Adding text in front of all footnotes