AY2324S1-CS2113T-W11-2 / tp

0 stars 4 forks source link

Modify `List` command message #206

Closed lctxct closed 11 months ago

lctxct commented 11 months ago
    public static void findEntryMessagePrinter(boolean hasMatch, ArrayList<Integer> matchingTasks) {
        if (!hasMatch) {
            System.out.println("No matching tasks found.");
        } else {
            System.out.println("Here are the matching tasks in your list:");
            for (int i = 0; i < matchingTasks.size(); i++) {
                System.out.print((i) + ".");
                EntryPrinter.printEntry(matchingTasks.get(i));
            }
        }
    }
}

Modify from tasks to entries.

woodenclock commented 11 months ago

Yup, fixed appropriately. image