Skip to content

Commit

Permalink
Add Rudimentary Helper Methods
Browse files Browse the repository at this point in the history
  • Loading branch information
nkotaa committed Mar 13, 2024
1 parent d6eeee7 commit 7e6d5e1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/seedu/binbash/ui/Ui.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 7e6d5e1

Please sign in to comment.