@@ -0,0 +1,864 @@
+package ru.revdaalex.lsp.chapterI.control;%0A%0Aimport ru.revdaalex.lsp.chapterI.food.Food;%0Aimport ru.revdaalex.lsp.chapterI.interfaces.Controll;%0Aimport ru.revdaalex.lsp.chapterI.interfaces.Storage;%0A%0Aimport java.util.ArrayList;%0A%0A/**%0A * ControlQuality class.%0A * Created by revdaalex on 04.07.2016.%0A */%0Apublic class ControllQuality implements Controll %7B%0A    ArrayList%3CStorage%3E storages = new ArrayList%3CStorage%3E();%0A%0A    /**%0A     * Start sorting products.%0A     * @param food%0A     */%0A    public void sort(Food food) %7B%0A        for (Storage storage : this.storages)%7B%0A            if (storage.SortQuality(food))%7B%0A                storage.add(food);%0A                break;%0A            %7D%0A        %7D%0A    %7D%0A%0A    /**%0A     * ControllQuality constructor.%0A     * @param storages%0A     */%0A    public ControllQuality(ArrayList%3CStorage%3E storages) %7B%0A        this.storages = storages;%0A    %7D%0A%7D%0A

add ControllQuality.java