SortbyPalo.java 278 Bytes
Newer Older
1 2 3 4 5 6 7
import java.util.Comparator;

class SortbyPalo implements Comparator<Carta>
{
    // Used for sorting in ascending order of
    // Ordenar por Palo
    public int compare(Carta a, Carta b)
8 9 10 11 12
    {   
        // int aux1, aux2;
 
         return a.palo.compareTo(b.palo) ;
     }
13
}