public ArrayList<String> recListaPeticiones(String nick) {//ok

        //verificar logueo 
      ArrayList<String> peticiones;
      peticiones = new ArrayList<String> ();
      
        try {
            String queryString = "select * from peticionAmistad  where receptor=?";
            connection = getConnection();
            ptmt = connection.prepareStatement(queryString);
            ptmt.setString(1, nick);
            resultSet = ptmt.executeQuery();
            
            while (resultSet.next()) {
               
                peticiones.add(resultSet.getString("emisor"));
                 
            }
            System.out.println("Data Recovery Successfully");
        } catch (SQLException e) {
            e.printStackTrace();
        } finally {
            try {
                if (ptmt != null) {
                    ptmt.close();
                }
                if (connection != null) {
                    connection.close();
                }
            } catch (SQLException e) {
                e.printStackTrace();
            } catch (Exception e) {
                e.printStackTrace();
            }

        }

        return peticiones;
    }