how do i get the end of record

hi all......I've only 8 records in the database...when i reach the end of record i.e)the 8th record i've to print a message .........Is there any possibilities to do.........could anyone help me...............
[225 byte] By [gunmarka] at [2007-11-26 13:16:41]
# 1
?You can query how many records you have. Look at your SQL handbook. The ResultSet will also tell you that there are no more records to go to.
CeciNEstPasUnProgrammeura at 2007-7-7 17:39:23 > top of Java-index,Java Essentials,Java Programming...
# 2
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...
gunmarka at 2007-7-7 17:39:23 > top of Java-index,Java Essentials,Java Programming...
# 3

> 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.

CeciNEstPasUnProgrammeura at 2007-7-7 17:39:23 > top of Java-index,Java Essentials,Java Programming...
# 4
declatre variable here let xwhile(rs.next()){ x=rs.getxxx();}System.out.println(x);
ramireddia at 2007-7-7 17:39:23 > top of Java-index,Java Essentials,Java Programming...
# 5

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");

G_Abubakra at 2007-7-7 17:39:23 > top of Java-index,Java Essentials,Java Programming...