1.1-Introductie-Programmeren

Generating a deck of cards

Difficulty: Filled Filled Outlined

Create a createDeckOfCards method that returns a list of all 52 cards (as Card instances of the class Card) in a regular deck of cards (without jokers). To prove that your method works, print out all cards of the “Diamonds” suite.

You’ll use this method again, so make sure it works correctly!

Example

Example