Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TextUi #13

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 {
}
Loading