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