Test for an empty ResultSetTag(s): JDBC
boolean found; ResultSet rs; ... // execute the query and then found = rs.next(); if (found) System.out.println("Record found"); else System.out.println("RECORD NOT FOUND");
boolean found; ResultSet rs; ... // execute the query and then found = rs.next(); if (found) System.out.println("Record found"); else System.out.println("RECORD NOT FOUND");