@@ -0,0 +1,2461 @@
+package ru.revdaalex.lsp.chapterI.start;%0A%0Aimport ru.revdaalex.lsp.chapterI.control.ControllQuality;%0Aimport ru.revdaalex.lsp.chapterI.food.*;%0Aimport ru.revdaalex.lsp.chapterI.interfaces.Controll;%0Aimport ru.revdaalex.lsp.chapterI.interfaces.Storage;%0Aimport ru.revdaalex.lsp.chapterI.storage.Shop;%0Aimport ru.revdaalex.lsp.chapterI.storage.Trash;%0Aimport ru.revdaalex.lsp.chapterI.storage.Warehouse;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.GregorianCalendar;%0A%0A/**%0A * Start class.%0A * Created by revdaalex on 04.07.2016.%0A */%0Apublic class Start %7B%0A    public static void main(String%5B%5D args) %7B%0A        /**%0A         * ArrayList contains Storage implements.%0A         */%0A        ArrayList%3CStorage%3E list = new ArrayList%3CStorage%3E();%0A        /**%0A         * new Apple().%0A         */%0A        Apple apple = new Apple(%22%D0%AF%D0%B1%D0%BB%D0%BE%D0%BA%D0%BE%22, new GregorianCalendar(2016, 7, 25), new GregorianCalendar(2016, 7, 3), 50);%0A        /**%0A         * new Grapes().%0A         */%0A        Grapes grapes = new Grapes(%22%D0%92%D0%B8%D0%BD%D0%BE%D0%B3%D1%80%D0%B0%D0%B4%22, new GregorianCalendar(2016, 7, 10), new GregorianCalendar(2016, 7, 3), 70);%0A        /**%0A         * new Cucumbers().%0A         */%0A        Cucumbers cucumbers = new Cucumbers(%22%D0%9E%D0%B3%D1%83%D1%80%D1%86%D1%8B%22, new GregorianCalendar(2016, 7, 9), new GregorianCalendar(2016, 7, 4), 25);%0A        /**%0A         * new Cherries().%0A         */%0A        Cherries cherries = new Cherries(%22%D0%A7%D0%B5%D1%80%D0%B5%D1%88%D0%BD%D1%8F%22, new GregorianCalendar(2016, 7, 8), new GregorianCalendar(2016, 6, 30), 250);%0A        /**%0A         * new Tomatoes.%0A         */%0A        Tomatoes tomatoes = new Tomatoes(%22%D0%A2%D0%BE%D0%BC%D0%B0%D1%82%D1%8B%22, new GregorianCalendar(2016, 7, 5), new GregorianCalendar(2016, 6, 30), 130);%0A        /**%0A         * Method add new Shop Storage.%0A         */%0A        list.add(new Shop());%0A        /**%0A         * Method add new Warehouse Storage.%0A         */%0A        list.add(new Warehouse());%0A        /**%0A         * Method add new Trash Storage.%0A         */%0A        list.add(new Trash());%0A        /**%0A         * New ControllQuality object.%0A         */%0A        Controll controll = new ControllQuality(list);%0A        /**%0A         * Method sort apple.%0A         */%0A        controll.sort(apple);%0A        /**%0A         * Method sort grapes.%0A         */%0A        controll.sort(grapes);%0A        /**%0A         * Method sort cucumbers.%0A         */%0A        controll.sort(cucumbers);%0A        /**%0A         * Method sort cherries.%0A         */%0A        controll.sort(cherries);%0A        /**%0A         * Method sort tomatoes.%0A         */%0A        controll.sort(tomatoes);%0A    %7D%0A%7D

add Start.java