Skip to content

Commit

Permalink
Level 6 Complete
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkedInk committed Aug 20, 2020
1 parent 54668c9 commit 9bfc130
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/MainLogic.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public void main() {

private boolean commandCheck(String string) {
switch (string) {
case "!command":
Text.printCommands();
return true;
case "bye":
bye = true;
Text.printEndMessage();
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/Text.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class Text {
"Type '!command' for list of commands";
private static String descriptionNotFound = "Error: description of task cannot be empty";
private static String taskNumNotSpecified = "Error: task number not specified";
private static String commandList = "list, bye, done, todo, deadline, event, delete";

public static void normalPrint(String middle) {
System.out.println(top + "\n" + middle + "\n" + bottom+ "\n");
Expand Down Expand Up @@ -38,4 +39,6 @@ public static void printDescriptionNotFoundError() {
public static void printTaskNumNotSpecifiedError() {
normalPrint(taskNumNotSpecified);
}

public static void printCommands() { normalPrint(commandList); }
}

0 comments on commit 9bfc130

Please sign in to comment.