125k views
3 votes
containsPair11Sum() and containsJQK() methods- where are they called? in which one is the cardIndexes() method called first and why?

User Evan V
by
8.0k points

1 Answer

3 votes

Final answer:

The containsPair11Sum() and containsJQK() methods are called in the cardIndexes() method, with the cardIndexes() method being called first.

Step-by-step explanation:

The containsPair11Sum() and containsJQK() methods are called in the cardIndexes() method. The cardIndexes() method is called first.

The containsPair11Sum() method checks if there are any pairs of cards whose indices sum up to 11. The containsJQK() method checks if there is a Jack, Queen, and King card present in the deck.

The cardIndexes() method is likely called first because it needs to determine which cards are in the deck before checking for pairs or specific card combinations.

User Giwan
by
7.9k points