Skip to content

Commit

Permalink
Merge pull request #1 from HengShuHong/TextUi-Class
Browse files Browse the repository at this point in the history
Text UI class
  • Loading branch information
HengShuHong committed Mar 15, 2024
2 parents 6e4b6f8 + 709e06c commit 0c7de92
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/main/java/seedu/duke/TextUi.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package seedu.duke;

import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class TextUi {

private final Scanner in;
private final PrintStream out;

public TextUi() {
this(System.in, System.out);
}

public TextUi(InputStream in, PrintStream out) {
this.in = new Scanner(in);
this.out = out;
}

public String getUserCommand() {return null;}

public void showWelcomeMessage() {}

public void showGoodByeMessage() {}
}
4 changes: 4 additions & 0 deletions src/test/java/seedu/duke/TextUiTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package seedu.duke;

public class TextUiTest {
}

0 comments on commit 0c7de92

Please sign in to comment.