class Details{
String name;
String age;
String email;
String location;
}
1) If there is List of Details as in List
how
You can hash values by a separator like #
, and then find that all uniques or not. Hash value for a Details
is name + "#" + "email
in the first case, and is name + "#" + age + "#" + email + "#" + location
in the second case.
You can using Hashmap
to find duplicates if there is any with the specified key (or hash) for each instance of Details
.