Skip to content

Commit

Permalink
Remove bug that affected size calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshHDs committed Sep 29, 2021
1 parent 30570b8 commit 5b0a817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/duke/TaskList.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static void addTask(Task newTask) {
//print statements
System.out.println(" Got it. I've added this task:");
System.out.println(" " + list.get(size - 1));
System.out.println(" Now you have " + (size + 1) + " tasks in the list.");
System.out.println(" Now you have " + (size) + " tasks in the list.");
}

/**
Expand Down

0 comments on commit 5b0a817

Please sign in to comment.