public Playlist findPlaylist(String nome){
    
        Playlist pl = null;
        
        for(int i=0; i<playlists.size(); i++){
        
            if(playlists.get(i).getName().equals(nome)){
            
                pl=playlists.get(i);
            }
        }
        
        return pl;
    }