Remove duplicates from a list
Posted
by Mercer
on Stack Overflow
See other posts from Stack Overflow
or by Mercer
Published on 2010-05-17T13:37:33Z
Indexed on
2010/05/17
13:40 UTC
Read the original article
Hit count: 266
Hello i want to remove duplicates from a list i do this but not working
List<Customer> listCustomer = new ArrayList<Customer>();
for (Customer customer: tmpListCustomer)
{
if (!listCustomer.contains(customer))
{
listCustomer.add(customer);
}
}
© Stack Overflow or respective owner