0
How do I press save button and inform if user already exists.
public void salvar(){
String comando = "";
if (this.getId() == -1){
comando = String.format("INSERT INTO cadastro (nomedousuario, senha)
VALUES ('%s','%s');");
}
Make a select by checking if the user name already exists.
– user28595
I made it here, thanks.
– Mauro Santos