Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String[] faces = new String[] {"2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"};
- String[] suits = new String[] { "a", "b", "c", "d"};
- int counter = 0;
- int index = 0;
- for (int i = 0; i < faces.length; i++) {
- for (int j = 0; j < suits.length; j++) {
- String[] cards = new String[]{};
- cards[index]=faces[i]+suits[j];
- System.out.println(cards[index]);
- index++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement