protected final String getCommand() throws MenuException {
 
        Scanner inFile = new Scanner(System.in);
        String command;
        boolean valid = false;
        do {
            command = inFile.nextLine();
            command = command.trim().toUpperCase();
            valid = validCommand(command);
            if (!validCommand(command)){
                throw new MenuException(Error.ERROR102.getMessage());
            }
            //if (!validCommand(command)) {
                //System.out.println("Invalid command: Please enter a valid command.");
                //continue;}
                
        } while (!valid);
        
        return command;
    }