Using int index = playlistSongDataOfTheSelectedPlaylist(); instead of
int index = playlistSongDataOfTheSelectedPlaylistCM();