> No..no......am getting the records one by one and i
> display it on the screen......when i cross the end of
> record i've to print a message...
Sorry, but this doesn't provide no useful information. End of records: no new one. Since you probably run a loop, you should be able to find out when it exits.
my method is slightly the same as ramireddi
rs.first();
System.out.println("Start reading");
do{
rs.getString(0);
}which(rs.next());
System.out.println("End of the table");