if(reverse) if(hasHistory()) { nextTrack = (Track)history.elementAt(history.size()-1); history.removeElementAt(history.size()-1); }else return; else history.add(getCurrentTrack());
this.reverse = reverse; if(reverse) { if(hasHistory()) { nextTrack = (Track)history.elementAt(history.size()-1); history.removeElementAt(history.size()-1); } else return; }
  private void skipSong(boolean reverse) {      // It must not be paused if you want to reject a track.    setPaused(false);   		//record current track in history		if(reverse)			 if(hasHistory()) {				  nextTrack = (Track)history.elementAt(history.size()-1);				  history.removeElementAt(history.size()-1);			 }else				  return;		else				history.add(getCurrentTrack());       // Clear the toKeepPlaying flag to instruct the play thread to co-operatively stop.    toKeepPlaying = false;    if (player != null)      player.close();      // Stop RoboJock if it's talking.    if (speech != null && speaking)       speech.abort();  }