diff --git a/src/main/java/seedu/binbash/ui/Ui.java b/src/main/java/seedu/binbash/ui/Ui.java new file mode 100644 index 0000000000..c1392fdedb --- /dev/null +++ b/src/main/java/seedu/binbash/ui/Ui.java @@ -0,0 +1,33 @@ +package seedu.binbash.ui; + +import java.util.Scanner; + +public class Ui { + private static final String WELCOME_MESSAGE = "Welcome to BinBash!"; + private static final String GOODBYE_MESSAGE = "Bye!"; + private static final String LINE_DIVIDER = "-------------------------------------------------------------"; + + private Scanner in; + private boolean isUserActive; + + public Ui() { + in = new Scanner(System.in); + isUserActive = true; + } + + 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); + } +}