How I can remove duplicates of ArrayList?
If collection type is Car,
public class Car{
String Name;
String Color;
String Door;
...
}
ArrayList carList = new ArrayList;
Remove duplicate of carList, but it removes if which elements same Name, Color, Door.
I want remove duplicate of arraylist by specific component. like Name.
If you know about this, Please help me.