public class Check extends Activity
{
    private double totalCheck;
    
    public Check(String label)
    {
        super.setName("Check");
        super.setTable(label);
    }
    
    public void setTotalCheck(MenuItem mi)
    {
        totalCheck += mi.getItemPrice();
    }
    
    @Override
    public String toString()
    {
        return "\nTable " + super.getTable() + " is checking out with a total of $" + totalCheck + ".";
    }
    
    @Override
    public double processActivity()
    {
        return 1.0;
    }
    
    @Override
    public String getMessage(char ch)
    {
        String message;
        
        if(ch == 'A')
            message = "Thank you for eating with us! \nTable " + super.getTable() + " status has now been changed to: Available";
        else
            message = "Not a valid status";
        
        return message;
    }
}

@@ -1,303 +1,647 @@
-public class Check extends Activity%0A%7B%0A    private dou
+import java.util.ArrayList;%0A%0Apublic class Server%0A%7B%0A    private String name;%0A    private Table tableList %5B%5D;%0A    private static ArrayList%3CTa
 ble
+%3E
  t
-otalCheck;%0A    %0A    public Check(String label)%0A    %7B%0A        super.setName(%22Check%22);%0A        super.setTable(label)
+ables = new ArrayList%3C%3E();%0A    %0A    public Server()%0A    %7B%0A        %0A    %7D%0A    %0A    public Server(String name, int %5B%5D tableArray)%0A    %7B%0A        this.name = name;%0A        tableList = new Table %5BtableArray.length%5D
 ;%0A    
-%7D
+    
 %0A    
-%0A
     
-public void setTotalCheck(MenuItem mi)%0A    %7B%0A        totalCheck += mi.getItemPrice(
+String tableString;%0A        %0A        for(int i = 0; i %3C tableArray.length; i++)%0A        %7B          %0A            tableString = %22T%22 + tableArray%5Bi%5D;%0A            Table t = new Table(tableString);%0A            tableList%5Bi%5D = t;%0A            tables.add(t
 );%0A    
+  
+  
 %7D%0A    
+%7D
 %0A    
-@Override
 %0A   
@@ -652,202 +652,394 @@
 lic 
-String toString()%0A    %7B%0A        return %22%5CnTable %22 + super.getTable() + %22 is checking out with a total of $%22 + totalCheck + %22.%22;%0A
+void setName(String name)%0A    %7B%0A        this.name = name;%0A    %7D%0A    %0A    public String getName()%0A    %7B%0A        return this.name;%0A    %7D%0A    %0A    public String getServerStatus()%0A    %7B     %0A        String output = %22%22;%0A        for(int i = 0; i %3C tableList.length; i++)%0A    
     
-%7D
+%7B
 %0A    
-%0A
     
-@Override%0A    public double processActivity()%0A    %7B
+    output += %22%5Ct%22 + tableList%5Bi%5D.getLabel() + %22(%22 + tableList%5Bi%5D.getStatus() + %22)%22;%0A        %7D%0A        
 %0A   
@@ -1054,11 +1054,14 @@
 urn 
-1.0
+output
 ;%0A  
@@ -1073,22 +1073,8 @@
    %0A
-    @Override%0A
     
@@ -1094,272 +1094,731 @@
  get
-Message(char ch)%0A    %7B%0A        String message;%0A        %0A        if(ch == 'A')%0A            message = %22Thank you for eating with us! %5CnTable %22 + super.getTable() + %22 status has now been changed to: Available%22;%0A        else
+TableLabel(String label)%0A    %7B%0A        String tableLabel = %22Table not Found%22;%0A        %0A        for(int i = 0; i %3C tableList.length; i++)%0A        %7B%0A            if(label.equals(tableList%5Bi%5D.getLabel()))%0A                tableLabel = label;%0A        %7D%0A        %0A        return tableLabel;%0A    %7D%0A    %0A    public char getTableStatus(String label)%0A    %7B%0A        char tableStatus = '0';%0A        %0A        for(int i = 0; i %3C tables.size(); i++)%0A        %7B%0A            if(label.equals(tables.get(i).getLabel()))%0A                tableStatus = tables.get(i).getStatus();%0A        %7D%0A        %0A        return tableStatus;
 %0A    
+%7D%0A
     
+%0A
     
-message = %22Not a valid status%22;
+public void setTabelStatus(char status, String label)%0A    %7B%0A        for(int i = 0; i %3C tables.size(); i++)
 %0A   
@@ -1814,32 +1814,33 @@
 ); i++)%0A        
+%7B
 %0A        return 
@@ -1836,28 +1836,119 @@
     
-return message;%0A    %7D%0A%7D
+    if(label.equals(tables.get(i).getLabel()))%0A                tables.get(i).setStatus(status);%0A        %7D%0A    %7D%0A%7D%0A
 %0A

Update Server.java