procedural programming Java code example

97

procedural programming Java code example -

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]));
  }
}

Comments

Submit
0 Comments