it is possible to compare data :
JTable Tutorial[
^]
But I think you want to match names and surnames. How do you want to do this?
Are there any keys that give a logical connection between the names and surnames (like a common address reference or same date of birth or so)?