
/**
 * Write a description of class Card here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
import java.util.*;
public class Card extends java.lang.Object
{
    ArrayList<Card> Cards= new ArrayList<Card>();
    /**
     * Constructor for objects of class Card
     */
    public Card(int id)
    {
        Cards = new ArrayList(id);
    }
    
    public int getId()
    {
        return Cards;
    }
    
    public boolean equals(java.lang.Object other)
    {
        if(Cards==other){
            return true;
        }
        else{
            return false;
        }
    }
    
    public int compareTo(Card other)
    {
        if(Cards.getId() < other)
        {
            return -1;
        }
        else if(Cards.getId()==other)
        {
            return 0;
        }
        else{
            return 1;
        }
    }
    
    public java.lang.String toString()
    {
        return ("The cards id is:"+Cards.getId());
    }
}

@@ -187,52 +187,14 @@
     
-ArrayList%3CCard%3E Cards= new ArrayList%3CCard%3E()
+int iD
 ;%0A  
@@ -294,33 +294,13 @@
     
-Cards = new ArrayList(
+iD=
 id
-)
 ;%0A  
@@ -352,21 +352,18 @@
  return 
-Cards
+iD
 ;%0A    %7D%0A
@@ -438,20 +438,23 @@
  if(
-Cards
+iD
 ==other
+.getId
 )%7B%0A 
@@ -606,29 +606,18 @@
  if(
-Cards.getId()
+iD
  %3C other
 )%0A  
@@ -608,24 +608,30 @@
 f(iD %3C other
+.getId
 )%0A        %7B%0A
@@ -683,28 +683,23 @@
  if(
-Cards.getId()==other
+iD==other.getId
 )%0A  
@@ -879,21 +879,10 @@
 s:%22+
-Cards.getId()
+iD
 );%0A 

Update Card.java