JAVA ResultSet Problem?

kaiwing18_at_hotmail.com
Date: 02/26/04


Date: 26 Feb 2004 06:48:11 -0800

Hi ,

Please see this code:

ResultSet rs=course.showStudent();

while(rs.next()) {
out.println(rs.getString("name"));
}

How can i know whether rs will have records before i print it out? As
i want to print some messages when no record is found.

Best regards,

Ricky