and what do you expect us to do with those 125 lines of code?
here's a very simple way of getting a solution to your problem:
1) create a new program
2) just a JTable in a JScrollPane in a JFrame 3) table has 2 rows, 2 columns
4) fill the 4 cells with 'comparable' data
5) hard-code some data to simulate the resultset (array, arraylist, whatever)
now try to add the hard-coded data to the table and do your comparison.
if you can't get that to work, you will have a very short/compilable/runnable
program to post. also post what it is doing vs what you want it to do
subject: Inserting single column values of database table into multiple columns of jtable and do comparison