From 7e6d5e1f8fbbcbc435734313b9836c435add9613 Mon Sep 17 00:00:00 2001 From: nkotaa Date: Wed, 13 Mar 2024 16:04:07 +0800 Subject: [PATCH] Add Rudimentary Helper Methods --- src/main/java/seedu/binbash/ui/Ui.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/seedu/binbash/ui/Ui.java b/src/main/java/seedu/binbash/ui/Ui.java index 4d7dbd77ba..c1392fdedb 100644 --- a/src/main/java/seedu/binbash/ui/Ui.java +++ b/src/main/java/seedu/binbash/ui/Ui.java @@ -18,4 +18,16 @@ public Ui() { public boolean isUserActive() { return isUserActive; } + + public void greet() { + talk(WELCOME_MESSAGE); + } + + public void farewell() { + talk(GOODBYE_MESSAGE); + } + + public void talk(String line) { + System.out.println(LINE_DIVIDER + "\n" + line + "\n" + LINE_DIVIDER); + } }