java模拟斗地主
package it.com.cc.ten;
import java.util.ArrayList;
import java.util.Collections;
public class PokerTest1 {
public static void main(String[] args) {
ArrayList<String> array=new ArrayList<String>();
String[]colors={"♣","♦","♠","♥"};
String[] numbers={"2","3","4","5","6","7","8","9","10","J","Q","K","A"};
for (String color:colors) {
for (String number : numbers) {
array.add(color + number);
}
}
array.add("大王");
array.add("小王");
Collections.shuffle(array);
ArrayList<String>