代码拉取完成,页面将自动刷新
package cn.jbit.classandobject;
public class CardGame6 {
String[] colors = {"方片","红桃","黑桃","梅花","小王","大王"};
String[] strs = {"2","3","4","5","6","7","8","9","10","J","Q","K","A","X","D",};
String color;
String test;
int num;
public void run(){
for (int i = 0; i < 13; i++) {
for (int j = 0; j < 4; j++) {
color = colors[j];
test = strs[i];
num = i;
System.out.println(color+" "+test);
}
}
color = colors[4];
test = strs[13];
num = 14;
System.out.println(color+" "+test);
color = colors[5];
test = strs[14];
num = 15;
System.out.println(color+" "+test);
}
public static void main(String[] args) {
CardGame6 card = new CardGame6();
card.run();
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。