
/**
 *  class CartaBaraja  
 * 
 * @author  
 * @version  
 */
public class CartaBaraja
{
    private final int OROS = 1;
    private final int COPAS = 2;
    private final int ESPADAS = 3;
    private final int BASTOS = 4;

    private int palo;
    private int valor;
    /**
     * Constructor de la clase CartaBaraja
     */
    public CartaBaraja(int palo, int valor)
    {
        this.palo = palo;
        this. valor = valor;
    }

    /**
     *  
     */
    public String getPalo()
    {   
        switch (this.palo){
            case 1: return "OROS";
            break;
            case 2: return "COPAS";
            break;
            case 3: return "ESPADAS";
            break;
            default: return "BASTOS";
            break;
        }
    }
    
    /**
     *  
     */
    public String getValor()
    {   
        switch (this.valor){
            case 1: return "UNO";
            break;
            case 2: return "DOS";
            break;
            case 3: return "TRES";
            break;
            case 4: return "CUATRO";
            break;
            case 5: return "CINCO";
            break;
            case 6: return "SEIS";
            break;
            case 7: return "SIETE";
            break;
            case 8: return "SOTA";
            break;
            case 9: return "CABALLO";
            break;
            default: return "REY";
            break;
        }
    }
    
    /**
     *  
     */
    public String toString()
    {
        return "'" + getValor() + " de " + getPalo();
    }

}

@@ -560,35 +560,16 @@
 %22OROS%22;%0A
-            break;%0A
         
@@ -596,35 +596,16 @@
 COPAS%22;%0A
-            break;%0A
         
@@ -634,35 +634,16 @@
 PADAS%22;%0A
-            break;%0A
         
@@ -672,35 +672,16 @@
 ASTOS%22;%0A
-            break;%0A
         
@@ -819,35 +819,16 @@
  %22UNO%22;%0A
-            break;%0A
         
@@ -853,35 +853,16 @@
  %22DOS%22;%0A
-            break;%0A
         
@@ -888,35 +888,16 @@
 %22TRES%22;%0A
-            break;%0A
         
@@ -925,35 +925,16 @@
 UATRO%22;%0A
-            break;%0A
         
@@ -961,35 +961,16 @@
 CINCO%22;%0A
-            break;%0A
         
@@ -996,35 +996,16 @@
 %22SEIS%22;%0A
-            break;%0A
         
@@ -1032,35 +1032,16 @@
 SIETE%22;%0A
-            break;%0A
         
@@ -1067,35 +1067,16 @@
 %22SOTA%22;%0A
-            break;%0A
         
@@ -1105,35 +1105,16 @@
 BALLO%22;%0A
-            break;%0A
         
@@ -1144,27 +1144,8 @@
 Y%22;%0A
-            break;%0A
     

Update CartaBaraja.java