@@ -0,0 +1,1386 @@
+package ru.job4j.start;%0A%0Aimport java.util.Scanner;%0A/**%0A*%0A* class StubInput.%0A* auhtor Sergey%0A* version 0.1%0A*/%0A%0Apublic class StubInput implements Input %7B%0A/**%0A* @param scanner%0A*/%0A%09private Scanner scanner = new Scanner(System.in);%0A/**%0A* @param answers%0A*/%0A%09private String%5B%5D answers = new String%5B6%5D;%0A/**%0A*%0A* %C2%A0%D0%BE%D0%BD%D1%81%D1%82%D1%80%D1%83%D0%BA%D1%82%D0%BE%D1%80.%0A* @param answers first%0A*/%0A%09public StubInput(String%5B%5D answers) %7B%0A%09%09this.answers = answers;%0A%09%7D%0A/**%0A* @param num%0A*/%0A private int num = 0;%0A/**%0A* method select %D0%B2%D0%B2%D0%BE%D0%B4 %D1%83%D0%BF%D1%80%D0%B0%D0%B2%D0%BB%C2%A4%D1%8E%D1%89%D0%B5%D0%B3%D0%BE %D1%87%D0%B8%D1%81%D0%BB%D0%B0 %D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D1%82%D0%B5%D0%BB%D0%B5%D0%BC.%0A* @return select%0A*/%0A%09public int select() %7B%0A%09%09int select;%0A%09%09if (num == 0) %7B%0A%09%09select = Integer.parseInt(answers%5B0%5D);%0A%09%09num++;%0A%09%09%7D else %7B%0A%09%09select = Integer.parseInt(answers%5B5%5D);%0A%09%09%7D%0A%09%09return select;%0A%09%7D%0A/**%0A* method askName.%0A* @param question first%0A* @return String.%0A*/%0A%09public String askName(String question) %7B%0A%09%09System.out.print(question);%0A%09%09return answers%5B1%5D;%0A%09%7D%0A/**%0A* method askId.%0A* @param question first%0A* @return String%0A*/%0A%09public String askId(String question) %7B%0A%09%09System.out.print(question);%0A%09%09return answers%5B2%5D;%0A%09%7D%0A/**%0A* method askDescription.%0A* @param question first%0A* @return String%0A*/%0A%09public String askDescription(String question) %7B%0A%09%09System.out.print(question);%0A%09%09return answers%5B3%5D;%0A%09%7D%0A/**%0A* method askCreate.%0A* @param question first%0A* @return long%0A*/%0A%09public long askCreate(String question) %7B%0A%09%09System.out.print(question);%0A%09%09return Long.parseLong(answers%5B4%5D);%0A%09%7D%0A%7D

task 785