Java List Algorithm - Remove music from playlist

Asked

Viewed 94 times

-4

I need to create a java playlist algorithm that removes music from a playlist, I already have the forward, back, random and play buttons; I need to remove music from the playlist with a playlist algorithm, but I have no idea how to do it

1 answer

0

  1. You already have a List?
  2. If 1 = yes, What type of your List?
  3. If 1 = yes, What kind of objects your List receives?
  4. If 1 = no, could explain your situation better?

If using Arraylist for example, just use the remove method: lista.remove(musica_que_deseja_remover);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.