Class ListCommand

java.lang.Object
amadeus.cognition.Command
amadeus.cognition.ListCommand

public class ListCommand extends Command
Command to display the current list of tasks.

This command prints the list of tasks to the console, organized by type.

  • Constructor Details

    • ListCommand

      public ListCommand()
  • Method Details

    • execute

      public void execute()
      Displays the current list of tasks to the console.

      The tasks are organized by type (Deadlines, Events, ToDos). The output is generated by the Speech.sayList(java.util.ArrayList) method.

      Specified by:
      execute in class Command