Resultset has no method for hasNext. I want to check if the resultSet has any value

is this the correct way

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

23 Answers
23

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *