String suit;
String count;
public void giveMe() {
String hs[] = {"红桃","黑桃","方片","草花"};
String ds[] = {"A","2","3","4","5","6","7","8","9","10","J","Q","K"};
String pokers[]= new String[52];
int n = 0;
for(int i = 0;i<hs.length;i++) {
for(int j = 0;j<ds.length;j++) {
pokers[n]=hs[i]+ds[j];
n++;
}
}
for(int num = 0;num<pokers.length;num++) {
System.out.println(pokers[num]);
}
}
public static void main(String[] args) {
Poker p = new Poker();
p.giveMe();
}
网友评论