public ResultSet listarMesas() throws SQLException { String consulta="SELECT * FROM mesas order by id asc"; try { Statement sentencia = conexion.obtener().createStatement();结果集 resultado = sentencia.executeQuery(consulta);返回结果; } catch (ClassNotFoundException | SQLException e) { e.printStackTrace();返回空值; } }