Hello! I am working with two ArrayList of objects with more than 6000 elements for each ArrayList. Most of these objects are the same but I need to find what are the differences between the two lists.
Is there a quick way to compare two ArrayList of objects?
As a reference this is my object:
class Follower {
String id;
String name;
String username;
Follower(String id, String name, String username) {
this.id = id;
this.name = name;
this.username = username;
}
}
I need to find which “Follower” (searching by ids or username) is different between the two lists.
I already tried with a nested loops but it takes ages.
Thanks