public ArrayList<Playlist> publicPlaylists() {

        ArrayList<Playlist> pubPlaylists = new ArrayList();

        for (int i = 0; i < usersList.size(); i++) {

            for (int j = 0; j < usersList.get(i).getPlaylists().size(); j++) {

                if (usersList.get(i).getPlaylists().get(j).getShared()) {

                    pubPlaylists.add(usersList.get(i).getPlaylists().get(j));
                }
            }
        }

        return pubPlaylists;
    }