From 83169943ba6aeb0766c39ee40154902aad8c8f55 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 14 Feb 2018 01:13:17 +0800 Subject: [PATCH] REFACTOR - AddressBook.java: extract processUserInput() method --- src/seedu/addressbook/AddressBook.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/seedu/addressbook/AddressBook.java b/src/seedu/addressbook/AddressBook.java index 5a158b67..27f66c75 100644 --- a/src/seedu/addressbook/AddressBook.java +++ b/src/seedu/addressbook/AddressBook.java @@ -210,6 +210,11 @@ public static void main(String[] args) { showWelcomeMessage(); processProgramArgs(args); loadDataFromStorage(); + processUserInput(); + return; + } + + private static void processUserInput() { while (true) { String userCommand = getUserInput(); echoUserCommand(userCommand);