@@ -0,0 +1,989 @@
+package ru.revdaalex.lsp.chapterI.storage;%0A%0Aimport ru.revdaalex.lsp.chapterI.food.Food;%0Aimport ru.revdaalex.lsp.chapterI.interfaces.Storage;%0A%0Aimport java.util.ArrayList;%0A%0A/**%0A * Shop class.%0A * Created by revdaalex on 04.07.2016.%0A */%0Apublic class Shop implements Storage %7B%0A    /**%0A     * ArrayList shop.%0A     */%0A    private final ArrayList%3CFood%3E shop = new ArrayList%3CFood%3E();%0A%0A    /**%0A     * Implements interface method add in Shop.%0A     * @param food%0A     */%0A    public void add(Food food) %7B%0A        this.shop.add(food);%0A    %7D%0A%0A    /**%0A     * Implements interface method SortQuality in Shop.%0A     * @param food%0A     * @return%0A     */%0A    public boolean SortQuality(Food food) %7B%0A        if (food.getExpiryDateInPercents() %3E 25 & food.getExpiryDateInPercents() %3C 75)%7B%0A            return true;%0A        %7D else if (food.getExpiryDateInPercents() %3E 75 & food.getExpiryDateInPercents() %3C 100)%7B%0A            food.setDisscount(50);%0A            return true;%0A        %7D%0A        return false;%0A    %7D%0A%0A%0A%7D%0A

add Shop.java