import java.util.ArrayList;
import java.util.LinkedList;

/**
 * Created by Jacob Stuart on 11/22/14.
 */
public class Menu {
	private ArrayList<Meal> meals = new ArrayList<Meal>();

	public void add(Meal meal) {
		meals.add(meal);
	}

	public Meal[] getMeals() {
		return meals.toArray(new Meal[meals.size()]);
	}
}
class Meal {
	private String name;
	private boolean isServing;
	private String hours;
	private ArrayList<MenuItem> menuItems = new ArrayList<MenuItem>();

	public void add(MenuItem menuItem) {
		menuItems.add(menuItem);
	}

	public void setHours (String hours) {
		this.hours = hours;
		isServing = true;
	}

	public void setServing(boolean serving) {
		isServing = serving;
		if (!serving) {
			hours = null;
		}
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public boolean getIsServing() {
		return isServing;
	}

	public String getHours() {
		return hours;
	}

	public MenuItem[] getMenuItems() {
		return menuItems.toArray(new MenuItem[menuItems.size()]);
	}
}
class MenuItem {
	private String name;
	private boolean isVegetarian;

	public void setVegetarian(boolean vegetarian) {
		isVegetarian = vegetarian;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean getIsVegetarian() {
		return isVegetarian;
	}

	public String getName() {
		return name;
	}
}

@@ -1029,32 +1029,79 @@
 ems.size()%5D);%0A%09%7D
+%0A%0A%09public String toString() %7B%0A%09%09return name;%0A%09%7D
 %0A%7D%0Aclass MenuIte
@@ -1387,31 +1387,78 @@
 etName() %7B%0A%09%09return name;%0A%09%7D
+%0A%0A%09public String toString() %7B%0A%09%09return name;%0A%09%7D
 %0A%7D%0A

add toString to menuItems and meals