package restauranttester;

import java.util.Scanner;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;

public class Restaurant
{    
    Restaurant()
    {   
        //Creates the object of Menu
        Menu menu = new Menu();
      
        //Creates ArrayList of Server Objects
        
        //Reads file and sends the code, name and price to setMenuItem()
        String code, name;
        double price;
        
        String FILE_NAME = "C:\\Users\\Neil\\Documents\\CS2336-501\\Menu.txt";
        Path path = Paths.get(FILE_NAME);
        
        try
        {
            Scanner sc = new Scanner(path);
            
            while(sc.hasNextLine())
            {
                code = sc.next();
                name = sc.next();
                price = sc.nextDouble();               
                menu.setMenuItem(code, name, price);              
            }
        }
        catch(Exception ex)
        {
            System.out.print(ex.getCause());
        } 
        
    }
    
    public void createMenu()
    {
        //Creates the objects of MenuItems and adds those to the menu    
    }
    
    public void displayMenu()
    {

    }
    
    public void displayServerList()
    {
        //Displays the list of Servers in the 
    }
    
    public void restaurantActivity()
    {
        
    }
    
    public void processActivity()
    {
        
    }
}

@@ -104,36 +104,8 @@
 ths;
-%0Aimport java.util.ArrayList;
 %0A%0Apu
@@ -125,16 +125,29 @@
 staurant
+ extends Menu
 %0A%7B    %0A 
@@ -167,19 +167,115 @@
 ()%0A    %7B
+%0A
    
+      //Creates ArrayList of Server Objects      %0A    %7D%0A    %0A    public void createMenu()%0A    %7B
 %0A       
@@ -340,61 +340,8 @@
 ();%0A
-      %0A        //Creates ArrayList of Server Objects%0A
     
@@ -879,16 +879,28 @@
     
-menu.set
+MenuItem food = new 
 Menu
@@ -923,16 +923,17 @@
  price);
+%0A
         
@@ -930,32 +930,53 @@
 ;%0A              
+  menuList.add(food);
 %0A            %7D%0A 
@@ -1077,19 +1077,16 @@
       %7D 
-%0A  
       %0A 
@@ -1103,38 +1103,39 @@
     public void 
-create
+display
 Menu()%0A    %7B%0A   
@@ -1145,119 +1145,157 @@
   //
-Creates the objects of MenuItems and adds those to the menu 
+fix this output%0A        for(int i = 0; i %3C menuList.size(); i++)%0A
    
-%0A
     
-%7D%0A
+ %7B%0A  
     
-%0A
     
-public void displayMenu()%0A    %7B%0A
+  System.out.print(menuList.get(i).getItemName());    %0A        %7D
 %0A   

Update Restaurant.java