public Playlist getPlaylistByName(String name){
    
        Playlist p=null;
        
        for(int i=0; i<playlists.size(); i++){
        
            if(playlists.get(i).getName().equalsIgnoreCase(name)){
            
                p=playlists.get(i);
            }
        }
        
        return p;
    }