Refactor string and integer comparisons in Task class, and add test data for different task titles.

This commit is contained in:
Abbas Al-younis
2023-11-02 21:56:47 -06:00
parent f9cfe8fbd2
commit 9527b75935
2 changed files with 10 additions and 8 deletions
+1
View File
@@ -154,6 +154,7 @@ public class Week9 {
// Test tasks, not read from a file and are not intended to be saved to a file.
private void testData() {
tasks.add(new Task("Title 1000", "Description ", "Due Date "));
tasks.add(new Task("100 Title", "Description ", "Due Date "));
for (int i = 20; i > 0; i--)
tasks.add(new Task("Title " + i, "Description " + i, "Due Date " + i));
}