Class CommandWords


  • public class CommandWords
    extends Object
    Cette classe a comme attribut un tableau de String contenant l'ensemble des commandes valides.
    Version:
    08/03/2020
    Author:
    Gabriel Leroux aidé des enseignements de M.Bureau
    • Constructor Detail

      • CommandWords

        public CommandWords()
        Constructor - initialise the command words.
    • Method Detail

      • isCommand

        public boolean isCommand​(String pString)
        Check whether a given String is a valid command word.
        Returns:
        true if a given string is a valid command, false if it isn't.
      • getCommandList

        public String getCommandList()
        Affiche toutes les commandes valides sur System.out