Alright, well I am getting the ".class expected" error. I cannot figure out what it is nor is google helping much either.
public class Driver
{
public static void main (String[] args){
Scanner scanIn = new Scanner(System.in);
Deck deck = new Deck();
Card[] hand = new Card[5];
Shuffle shuffle = new Shuffle(deck);
Scorer scorer = new Scorer();
shuffle.shuffle();
for(int i = 0; i < hand.length; i++){
hand[i] = new Card();
hand[i] = deck.deal();
}
System.out.println(deck.printDeck());
System.out.print("How many cards would you like to replace >");
int ans = scanIn.nextInt();
System.out.println();
if (ans != 0){
for(int i = 0; i < ans; i++){
System.out.print("Which card would you like changed (0-4) ");
hand[scanIn.nextInt()] = deck.deal();
}
}
System.out.println(deck.printDeck());
scorer.scoreHand(hand[]);
}
}
I am getting the error on line 32 with "scorer.scoreHand(hand[]);"
The scoreHand method of the scorer class is expecting an array of Cards (Card[]) which is what hand[] is.
Any help is much appreciated.
Thanks,
Justin Byrd