package ru.pravvich.start;

import java.util.Scanner;

/**
 * Created by pavel on 04.11.16.
 */
public class ConsoleInput implements Input {

    Scanner scanner= new Scanner(System.in);

    @Override
    public String ask(String question) {
        System.out.println(question);
        return this.scanner.nextLine();
    }
}

@@ -52,49 +52,8 @@
 r;%0A%0A
-/**%0A * Created by pavel on 04.11.16.%0A */%0A
 publ
@@ -233,16 +233,16 @@
 stion);%0A
-
         
@@ -278,11 +278,361 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public int askInt(String question) %7B%0A        System.out.println(question);%0A        String forParse = this.scanner.nextLine();%0A        if (forParse.length() != 0 && !(forParse.contains(%22 %22)) && forParse.matches(%22%5B0-9%5D+%22)) %7B%0A            int ask = Integer.parseInt(forParse);%0A            return ask;%0A        %7D%0A        return 0;%0A    %7D
 %0A%7D%0A

add chapter_002/tracker/src/main/java/ru/pravvich/start/ConsoleInput.java