import java.util.*;

public class Food
{
    public Food ()
    {

    }

    Vector<String> _allergens;
    Vector<String> _ingredients;
}
import java.util.*;

public class Food
{
    public Food ()
    {
        _allergens = new Vector<String>();
        _ingredients = new Vector<String>();
    }

    public final void addIngredient (String data)
    {
        _ingredients.add(data);
    }

    public final void addAllergen (String data)
    {
        _allergens.add(data);
    }

    @Override
    public String toString ()
    {
        String str = "";

        return str;
    }

    Vector<String> _allergens;
    Vector<String> _ingredients;
}
Update Food.java