public pegaNomeUser(String nome_user) throws SQLException {
Connection conexao = con.abrirConexao();
Statement st = null;
ResultSet rs = null;
try {
st = conexao.createStatement();
rs = st.executeQuery("Select nome_user from bdconta where login = '" + nome_user + "' ");
} catch (SQLException erro) {
System.out.println(erro);
} finally{
rs.close();
st.close();
con.fecharConexao(conexao);
}
return nome_user;
}
Ja agradeço pela ajuda