public boolean deleteTrack(Track track){
synchronized (tracks) {
    return tracks.removeElement(track);
  }
}

public boolean deleteTrack ( Track track ) { synchronized ( tracks ) { return tracks . removeElement ( track ) ; } }
removes the specified track from the sequence .
