FlashCardsProject/build/build/src/jf/flashcards/address/view/FlashCardOverviewController.java
/**
     * gives functionality to the next card button
     * sets the labels to the next card 
     * 
     */
gives functionality to the next card button
sets the labels to the next card
gives functionality to the next card button sets the labels to the next card
@FXML
    private void nextCard() {
    	if(!currentFlashCardStack.isEmpty())
    	{
    		if((listIndex + 1) >= currentFlashCardStack.size())
    		{
    			listIndex = 0;
    		}
    		else
    		{
    			listIndex +=1;
    		}
    		frontCardLabel.setText(currentFlashCardStack.get(listIndex).getFront());
    		frontShowing = true;
    		frontBackLabel.setText("Front");
    	}
    }
@ FXML private void nextCard ( ) { if ( ! currentFlashCardStack . isEmpty ( ) ) { if ( ( listIndex + 1 ) >= currentFlashCardStack . size ( ) ) { listIndex = 0 ; } else { listIndex += 1 ; } frontCardLabel . setText ( currentFlashCardStack . get ( listIndex ) . getFront ( ) ) ; frontShowing = true ; frontBackLabel . setText ( "Front" ) ; } }
gives functionality to the next card button
 sets the labels to the next card
gives functionality to the next card button sets the labels to the next card
//if the listIndex goes beyond the currentFlashCardStack size, then it will go back to the start //goes to the next index  //sets the labels 