*/
import java.util.*;
class Test
{
public static void main(String[] args)
{
Poker[] ps=PokerTools.getPokers();
PokerTools.showPokers(ps);//没洗牌之前
PokerTools.xiPai(ps);//洗牌操作
System.out.println("\n--------------------------------------");
PokerTools.showPokers(ps);//洗牌之后
System.out.println("\n--------------------------------------");
int index=PokerTools.findPoker(new Poker("红桃","A"),ps);
System.out.println(index+1);
}
}
//这个类作用是定义扑克的花色与面值
class PokerTools
{
//花色
public static final String[] cs={"黑桃","红桃","方块","梅花"};
//面值
public static final String[] ns={"2","3","4","5","6","7","8","9","10","J","Q","K","A"};