package bakatxt.core;

import java.awt.GraphicsEnvironment;
import java.util.LinkedList;
import java.util.Scanner;

import bakatxt.gui.BakaUI;

public class BakaTxtMain {

    private static final String MESSAGE_WELCOME = "Welcome To BakaTxt!";
    private static final String MESSAGE_BYEBYE = "Bye bye!";
    private static final String MESSAGE_ENTER_COMMAND = "Please enter command: ";
    private static final String MESSAGE_INVALID_COMMAND = "Invalid Command!";

    private static Scanner _sc;
    private static BakaParser _parser;
    private static Database _database;
    private static LinkedList<Task> _displayTasks;
    private static BakaProcessor _processor;

    public BakaTxtMain() {

        _sc = new Scanner(System.in);
        _parser = BakaParser.getInstance();
        _database = Database.getInstance();
        _displayTasks = _database.getAllTasks();
        _processor = new BakaProcessor();
    }

    public static void main(String[] args) {

        if (GraphicsEnvironment.isHeadless()) {
            BakaTxtMain thisSession = new BakaTxtMain();

            System.out.println(MESSAGE_WELCOME);

            while (true) {
                System.out.print(MESSAGE_ENTER_COMMAND);
                String input = _sc.nextLine();
                String result = _processor.executeCommand(input);
                System.out.println(result);
            }
        }
        BakaUI.startGui();
    }

}

@@ -57,37 +57,8 @@
 nt;%0A
-import java.util.LinkedList;%0A
 impo
@@ -159,691 +159,130 @@
 tic 
-final String MESSAGE_WELCOME = %22Welcome To BakaTxt!%22;%0A    private static final String MESSAGE_BYEBYE = %22Bye bye!%22;%0A    private static final String MESSAGE_ENTER_COMMAND = %22Please enter command: %22;%0A    private static final String MESSAGE_INVALID_COMMAND = %22Invalid Command!%22;%0A%0A    private static Scanner _sc;%0A    private static BakaParser _parser;%0A    private static Database _database;%0A    private static LinkedList%3CTask%3E _displayTasks;%0A    private static BakaProcessor _processor;%0A%0A    public BakaTxtMain() %7B%0A%0A        _sc = new Scanner(System.in);%0A        _parser = BakaParser.getInstance();%0A        _database = Database.getInstance();%0A        _displayTasks = _database.getAllTasks(
+Scanner _sc;%0A    private static BakaProcessor _processor;%0A%0A    public BakaTxtMain() %7B%0A%0A        _sc = new Scanner(System.in
 );%0A 
@@ -497,129 +497,22 @@
     
-System.out.println(MESSAGE_WELCOME);%0A%0A            while (true) %7B%0A                System.out.print(MESSAGE_ENTER_COMMAND);
+while (true) %7B
 %0A   

Remove unused command line interface messages and instances in the main