Advertisement
Guest User

Untitled

a guest
Jan 18th, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. String[] faces = new String[] {"2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"};
  2. String[] suits = new String[] { "a", "b", "c", "d"};
  3.  
  4. int counter = 0;
  5. int index = 0;
  6.  
  7. for (int i = 0; i < faces.length; i++) {
  8. for (int j = 0; j < suits.length; j++) {
  9. String[] cards = new String[]{};
  10. cards[index]=faces[i]+suits[j];
  11. System.out.println(cards[index]);
  12. index++;
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement