Remove duplicates from a list
- by Mercer
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);
}
}