/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package juegopoker; import java.util.ArrayList; /** * * @author user */ class Cartas { private static final String[] palos = {"S", "C", "H", "D"};//para los valores de los palos private static final String[] valores = {"A","2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", };//para los valores de la cartas private String p; private String v; private String n; private int numericValue; public Cartas(String palo, String valor, int numericValue) { this.p = palo; this.v = valor; this.numericValue = numericValue; this.n = valor+palo; } public String getPalo() { return p; } public String getValor() { return v; } public static ArrayList crearMazo(){ ArrayList mazo = new ArrayList<>(); for(int i=0;i