Question: Regarding the error cannot final symbol symbol: method getCardDeck( location: variable deck of type GroupOfCards, it means that the method getCardDeck is not defined in

Regarding the error "cannot final symbol symbol: method getCardDeck( location: variable deck of type GroupOfCards," it means that the method "getCardDeck" is not defined in the "GroupOfCards" class. Therefore, you can't call it on the "deck" object. Instead, you need to use the "getCards()" method of the "GroupOfCards" class to access the cards in the deck. Here's how you can modify your code: Replace this line: deck.getCardDeck().add(new Card(r, Card.suits[c])); With this line: deck.getCards().add(new Card(r, Card.suits[c])); this fixed the one line and i have some more errors:

The error you resolved for me, is the code I already have entered..

Regarding the error "cannot final symbol symbol: method getCardDeck( location: variable deck

of type GroupOfCards," it means that the method "getCardDeck" is not defined

in the "GroupOfCards" class. Therefore, you can't call it on the "deck"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!