Skip to content

Commit

Permalink
Improve ui
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzhangg committed Sep 18, 2020
1 parent c8ed12b commit 879eb52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/Ui.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ String formatResponse(String response) {
}

String showError(DukeException e) {
return " " + e.getMessage();
return " " + e.getMessage();
}

String showWelcome() {
Expand Down Expand Up @@ -58,17 +58,17 @@ private String buildTaskString(ArrayList<Task> tasks) {

String showDoneTasks(ArrayList<Task> tasks) {
String doneTasks = buildTaskString(tasks);
return "Nice! I've marked these tasks as done:\n " + doneTasks;
return "Nice! I've marked these tasks as done:\n " + doneTasks;
}

String showDeleteTasks(ArrayList<Task> tasks, int listLength) {
String deleteTasks = buildTaskString(tasks);
return "Noted. I've removed these tasks:\n " + deleteTasks
return "Noted. I've removed these tasks:\n " + deleteTasks
+ "\nNow you have " + listLength + " tasks in the list.";
}

String showAddedTask(Task task, int listLength) {
return "Got it. I've added this task:\n " + task
return "Got it. I've added this task:\n " + task
+ "\nNow you have " + listLength + " tasks in the list.";
}

Expand Down

0 comments on commit 879eb52

Please sign in to comment.