hi
I have created the discard method in my player class and play is a Card[]
so i type currentCards.discard(numOfCard); and then it says "it cant invoke discard(int) on the array type card[]"
any help is appreciated thanks
hi
I have created the discard method in my player class and play is a Card[]
so i type currentCards.discard(numOfCard); and then it says "it cant invoke discard(int) on the array type card[]"
any help is appreciated thanks
You didn't show the method signature of your discard() method, but is sounds like you coded it discard(card[]) instead of discard(int).
If you can post the code for the discard() method, it would be helpful.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.