package app.utils;

import java.util.Scanner;

public class ConsoleWorker {
    private static final Scanner SCANNER = new Scanner(System.in);

    private ConsoleWorker() {
    }

    public static String readLine() {
        return SCANNER.nextLine();
    }

    public static void println(String s) {
        System.out.println(s);
    }

    public static void print(String s) {
        System.out.print(s);
    }
}

@@ -224,14 +224,21 @@
     
-return
+String line =
  SCA
@@ -254,16 +254,141 @@
 Line();%0A
+        if (isExit(line)) %7B%0A            println(Log.CLOSING_APP);%0A            System.exit(0);%0A        %7D%0A        return line;%0A
     %7D%0A%0A 
@@ -500,32 +500,32 @@
 int(String s) %7B%0A
-
         System.o
@@ -542,11 +542,113 @@
 );%0A    %7D
+%0A%0A    private static boolean isExit(String line) %7B%0A        return %22exit%22.equalsIgnoreCase(line);%0A    %7D
 %0A%7D%0A

add exit from the application by enter 'exit'