import java.util.Arrays;
import java.util.List;

public class Dish {

    public enum Type {MEAT, FISH, OTHER};

    private final String name;
    private final boolean vegetarian;
    private final int calories;
    private final Type type;


    public Dish(String name, boolean vegetarian, int calories, Type type) {
        this.name = name;
        this.vegetarian = vegetarian;
        this.calories = calories;
        this.type = type;

    }
    public int getCalories() {
        return calories;
    }
    public boolean isVegetarian() {return vegetarian;}
    public String getName() {
        return name;
    }
    public Type getType() { return type;}

    static List<Dish> createMenu() {
        List<Dish> list = Arrays.asList(
                new Dish("pork", false, 800, Dish.Type.MEAT),
                new Dish("beef", false, 700, Dish.Type.MEAT),
                new Dish("chicken", false, 400, Dish.Type.MEAT),
                new Dish("rice", true, 350, Dish.Type.OTHER),
                new Dish("salmon", false, 450, Dish.Type.FISH)
        );

        System.out.print("Today's menu is: ");
        for(Dish dish: list) {
            System.out.print(dish.getName() + " ");
        }
        System.out.println(" ");

        return list;
    }
}
