📜  过程式编程 Java 代码示例 代码示例

📅  最后修改于: 2022-03-11 14:52:27.549000             🧑  作者: Mango

代码示例1
import java.util.*;

public class Game
{
  public static void main(String[] args)
  {
    Random rand = new Random(System.currentTimeMillis());
    int[] D = Card.makeDeck();
    Card.shuffle(D,rand);
    for(int top = 0; top < D.length; top++)
      System.out.println(Card.cardToString(D[top]));
  }
}