FlashCardsProject/build/build/src/jf/flashcards/address/view/FlashCardOverviewController.java
/**
     * 
     * shuffles the currentFlashCardStack by using Collections.Shuffle() 
     * resets the labels and index after shuffling 
     * 
     */
shuffles the currentFlashCardStack by using Collections.Shuffle()
resets the labels and index after shuffling
shuffles the currentFlashCardStack by using Collections . Shuffle () resets the labels and index after shuffling
@FXML
    private void shuffleList() {
    	if(!currentFlashCardStack.isEmpty())
    	{
        	Collections.shuffle(currentFlashCardStack);
        	listIndex = 0;
    		frontCardLabel.setText(currentFlashCardStack.get(listIndex).getFront());
    		frontShowing = true;
    	}
    	else
    	{
       		Alert alert = new Alert(AlertType.WARNING);
    		alert.initOwner(mainApp.getPrimaryStage());
    		alert.setTitle("No Selection");
    		alert.setHeaderText("No cards are in the stack");
    		alert.setContentText("Cannot shuffle cards");
    		alert.showAndWait();
    	}
    }
@ FXML private void shuffleList ( ) { if ( ! currentFlashCardStack . isEmpty ( ) ) { Collections . shuffle ( currentFlashCardStack ) ; listIndex = 0 ; frontCardLabel . setText ( currentFlashCardStack . get ( listIndex ) . getFront ( ) ) ; frontShowing = true ; } else { Alert alert = new Alert ( AlertType . WARNING ) ; alert . initOwner ( mainApp . getPrimaryStage ( ) ) ; alert . setTitle ( "No Selection" ) ; alert . setHeaderText ( "No cards are in the stack" ) ; alert . setContentText ( "Cannot shuffle cards" ) ; alert . showAndWait ( ) ; } }
shuffles the currentFlashCardStack by using Collections.Shuffle()
 resets the labels and index after shuffling
shuffles the currentFlashCardStack by using Collections . Shuffle () resets the labels and index after shuffling