444

作者: 沫忘丶 | 来源:发表于2019-03-06 23:53 被阅读0次

    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();

    }

    相关文章

      网友评论

          本文标题:444

          本文链接:https://www.haomeiwen.com/subject/fhzfpqtx.html