Example of what I'm trying to do:
vRS = sql.executeQuery();
while(vRS.next())
{
nome = vRS.getString("nome");
cargo = vRS.getString("cargo");
}
What I want to do is when the registry does not exist to display a message from System.out.Println ("It does not exist in the database!");
if (!vRS.next()) {
System.out.println("Não Encontrou cpf ou cnpj");
setVerMensagem(true);
setVerGrid(false);
}
This form bugs what would be the correct way?