Package amadeus.cognition
Class ListCommand
java.lang.Object
amadeus.cognition.Command
amadeus.cognition.ListCommand
Command to display the current list of tasks.
This command prints the list of tasks to the console, organized by type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Displays the current list of tasks to the console.
-
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.
-