Mysql – How to use ResultSet correctly? No operations allowed after statement closed
any idea how to improve this code to avoid the java.sql.SQLException: No operations allowed after statement closed. I can't understand where the error actually occurs, I guess after if (resultSet.next()) the connection is closed. This method is executed when a…