@@ -0,0 +1,759 @@
+package ru.matevosyan.start;%0A%0A/**%0A * Created for valid input data.%0A * Created on 27.12.2016.%0A * @since 1.0%0A * @version 1.0%0A * @author Matevosyan Vardan%0A */%0A%0Apublic class ValidateInput extends ConsoleInput %7B%0A%0A    public int ask(String question, int%5B%5D range) %7B%0A%0A        boolean invalid = true;%0A        int value = -1;%0A%0A        do %7B%0A            try %7B%0A                value = super.ask(question, range);%0A                invalid = false;%0A            %7D catch (MenuOutException moe) %7B%0A                System.out.println(%22Please select key from menu%22);%0A            %7D%0A            catch (NumberFormatException nfe) %7B%0A                System.out.println(%22Please enter validate data again%22);%0A            %7D%0A        %7D while (invalid);%0A        return value;%0A        %7D%0A    %7D%0A%0A

add ValidateInput