@@ -0,0 +1,776 @@
+package ru.revdaalex.menu;%0A%0A/**%0A * MenuValidator class.%0A * Created by revdaalex on 15.09.2016.%0A */%0Apublic class MenuValidator extends ConsolIO %7B%0A    /**%0A     * Int user choice variable.%0A     */%0A    private int uc;%0A    /**%0A     * Boolean isValid variable.%0A     */%0A    private boolean isValid;%0A%0A    /**%0A     * Menu validation method.%0A     * @return int user choice.%0A     */%0A    public int validMenu()%7B%0A        int choice = 0;%0A        isValid = true;%0A        while (isValid)%7B%0A            this.uc = Integer.valueOf(super.read());%0A            if (uc == 0 %7C%7C uc %3E 6)%7B%0A                super.out.println(%22%D0%9D%D0%B5%D1%82 %D1%82%D0%B0%D0%BA%D0%BE%D0%B3%D0%BE %D0%BF%D1%83%D0%BD%D0%BA%D1%82%D0%B0 %D0%BC%D0%B5%D0%BD%D1%8E.%5Cn %D0%9F%D0%BE%D0%BF%D1%80%D0%BE%D0%B1%D1%83%D0%B9%D1%82%D0%B5 %D0%B5%D1%89%D0%B5 %D1%80%D0%B0%D0%B7.%22);%0A            %7D else %7B%0A                choice = uc;%0A                isValid = false;%0A            %7D%0A        %7D return choice;%0A    %7D%0A%7D%0A

add MenuValidator.java