if (resultSet.Next ())
if (!resultSet.next() ) {
System.out.println("no data");
}
Tense Tern
if (!resultSet.next() ) {
System.out.println("no data");
}