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
sql server
VMware Workstation 7.1 Won't Install
How to create own SMTP Server on VPS?
Why won't Exchange Transport service start in Exchange 2007 on our SBS 2008 server ?
IE8 Submit Form with [Enter] Key, not functioning properly
How to notify the moderator of new posts?
net share system error 5 acces denied
insert record and check for existing email address
Deploy application using GPO win 2008 R2
Cisco 2950 Vlan for Voice