[color=“red”]RepositorioSQL.java [57:1] variable iCorreto might not have been initialized
return iCorreto;
^
1 error
Errors compiling RepositorioSQL.[/color]
PRECISO QUE O METODO RETORNE UM TRUE/FALSE
public boolean inserirUsuario(String strCodigo, String strLogin,String strSenha, String strNome,String strEmail) throws java.sql.SQLException
{
boolean iCorreto;
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(“insert into logins(l_codigo,l_login,l_senha,l_nome,l_emal) values (’”+strCodigo+"’,’"+strLogin+"’,’"+strSenha+"’,’"+strNome+"’,’"+strEmail+"’)" );
rs.next();
st.close();
rs.close();
return iCorreto;
}
