Skip to content

Commit

Permalink
Add Javadoc for findTasks method
Browse files Browse the repository at this point in the history
  • Loading branch information
seandooa committed Mar 7, 2024
1 parent 257907b commit c12b41c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/bobby/TaskList.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public void unmarkTask(int entry) {
list.get(entry - 1).setDone(false);
}

/**
* Finds tasks containing a specific keyword in their descriptions and displays them.
*
* @param keyword The keyword to search for in task descriptions.
*/
public void findTasks(String keyword) {
ArrayList<Task> matchingTasks = new ArrayList<>();
for (Task task : list) {
Expand Down

0 comments on commit c12b41c

Please sign in to comment.