package ru.job4j.tracker.controller;

/**
 * This class is interface.
 */
public interface Input {

    /**
     * method ask a user what to do next.
     *
     * @param question is question
     * @return string
     */
    String ask(String question);

}

@@ -31,16 +31,78 @@
 oller;%0A%0A
+import ru.job4j.tracker.exceptions.IndexOutOfRangeException;%0A%0A
 /**%0A * T
@@ -311,10 +311,345 @@
 tion);%0A%0A
+    /**%0A     * method ask a user what to do next and validate data in range.%0A     *%0A     * @param question is question%0A     * @param range is range of integer%0A     * @return integer%0A     * @throws IndexOutOfRangeException if users type invalid action%0A     */%0A    int ask(String question, int%5B%5D range) throws IndexOutOfRangeException;%0A%0A
 %7D%0A

Refactor Input.java