/*************************************************************************
* Compilation: javac Cards.java
* Execution: java Cards
*
* Print out the 52 playing cards in order.
*
* % java Cards
* Deuce of Clubs
* Three of Clubs
* Four of Clubs
* ...
* Ace of Spades
*
*************************************************************************/
public class Cards {
public static void main(String[] args) {
String[] suits = { "Clubs", "Diamonds", "Hearts", "Spades" };
String[] ranks = { "Deuce", "Three", "Four", "Five", "Six", "Seven",
"Eight", "Nine", "Ten", "Jack", "Queen", "King", "Ace"
};
for (int i = 0; i < suits.length; i++)
for (int j = 0; j < ranks.length; j++)
System.out.println(ranks[j] + " of " + suits[i]);
}
}