package Test;/*
*@ClassName : Test2
*@Description : $ {打印扑克牌}
*@Author : NingYu
*@Date : 2022-10-04 18:{MINUTE}
*/
public class Test2 {
public static void main(String[] args) {
String[] color = new String[]{"黑桃", "红桃", "梅花", "方块"};
String[] letter = new String[]{"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"};
String[] com = new String[52];
for (int i = 0; i < color.length; i++) {
for (int j = 0; j < letter.length; j++) {
int m = i * 13 + j;
com[m] = color[i] + letter[j];
}
}
for (int i = 0; i < com.length; i++) {
System.out.print(com[i] + "; ");
if((i+1) % 13 ==0){
System.out.println();
}
}
}
}