|
Code:
|
public void shuffle() {
for ( int i = deck.length-1; i > 0; i-- ) {
int rand = (int)(Math.random()*(i+1));
Card temp = deck[i];
deck[i] = deck[rand];
deck[rand] = temp;
}
cardsUsed = 0;
} |
This code is in the "Deck" class, and I get a missing return statement error for this method. (I guess they're called methods?) How come I get that error for a void type? Can someone help me?