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
LZMA compress / expand buffer api?
IPv4 vs IPv6
OS X Server 10.5 and OS X Laptops Joining accounts to Open Directory?
Javascript - how to add number to field name (dynamic field add script)
PHP/Javascript newbie - need help integrating niftycube into my site
WRT54G2 Linksys router - reset password saving actual configuration
Ajax compatibility problem with IE and Firefox
Net Use returns "System error 64 has occurred. The specified network name is no longer available."
Cannot enter data from the query based datasheet
How to get lightbox to show over Flash banner?