Class PrintCommand

    • Constructor Detail

      • PrintCommand

        public PrintCommand​(String message)
        Instantiates a PrintCommand which will print the given message when it is run.
        Parameters:
        message - the message to print
    • Method Detail

      • initialize

        protected void initialize()
        Description copied from class: Command
        The initialize method is called the first time this Command is run after being started.
        Overrides:
        initialize in class Command