@@ -0,0 +1,729 @@
+package ru.job4j.start;%0A%0Aimport java.util.*;%0A%0A/**.%0A* This class need for interaction for user%0A* %0A* @author Anton Vasilyuk%0A* @version 1.0%0A* @since 0.1%0A*/%0A%0Apublic class ValidateInput extends ConsolInput %7B%0A%0A%09/**.%0A%09* method for checking answers user, and output error%0A%09* @param question%0A%09* @param ranges%0A%09* @return value%0A%09*/%0A%09public int ask(String question, int%5B%5D ranges) %7B%0A%09%09boolean invalid = true;%0A%09%09int value = -1;%0A%09%09do %7B%0A%09%09%09try %7B%0A%09%09%09%09value = super.ask(question, ranges);%0A%09%09%09%09invalid = false;%0A%09%09%09%7D catch(MenuOutException moe) %7B%0A%09%09%09%09System.out.println(%22Please select key from menu.%22);%0A%09%09%09%7D catch(NumberFormatException nfe) %7B%0A%09%09%09%09System.out.println(%22Please enter validate data again.%22);%0A%09%09%09%7D%0A%09%09%7D while(invalid);%0A%09%09return value;%0A%09%7D%0A%7D

add file for chapter_002_2.7.1