标签: java loops
我做了2个随机卡片生成器。我想知道哪个更高。如何将当前值与以下示例中的先前值进行比较?
for (int i = 0; i < 2; i++){ String suit = suits[deck[i] / 13]; String rank = ranks[deck[i] % 13]; System.out.println("You have the " + rank + " of " + suit); }