Skip to content

Commit

Permalink
Merge branch-fixReminder into master
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-ny committed Feb 23, 2024
2 parents 8f0b820 + 7d208d9 commit 740f96b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/solaire/tasklist/TaskList.java
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ public String remindMe(String... buffer) {
int bufferDays = 1;
if (buffer.length != 0) {
bufferDays = Integer.parseInt(buffer[0]);
if (bufferDays < 0) {
return "Please enter a non-negative number of days\n";
}
}
String output = "Here's what's due in " + bufferDays + " days:\n ";
int reminderIndex = 1;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/Solaire.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ D | 1 | return book | 2024-02-24
E | 0 | career fair | 12pm | 6pm
E | 0 | project meeting | 2021-09-17 | 2021-09-18
T | 0 | read book
D | 0 | build new app | 2024-02-23

0 comments on commit 740f96b

Please sign in to comment.