package worldofzuul;

/**
 * @author  Michael Kolling and David J. Barnes
 * @version 2006.03.30
 */

public class Command {
    private CommandWord commandWord;
    private String secondWord;

    public Command(CommandWord commandWord, String secondWord) {
        this.commandWord = commandWord;
        this.secondWord = secondWord;
    }

    public CommandWord getCommandWord() {
        return commandWord;
    }

    public String getSecondWord() {
        return secondWord;
    }

    public boolean isUnknown() {
        return (commandWord == CommandWord.UNKNOWN);
    }

    public boolean hasSecondWord() {
        return (secondWord != null);
    }
}

@@ -94,17 +94,16 @@
 .30%0A */%0A
-%0A
 public c
@@ -125,462 +125,1188 @@
     
-private CommandWord commandWord;%0A    private String secondWord;%0A%0A    public Command(CommandWord commandWord, String secondWord) %7B%0A        this.commandWord = commandWord;%0A        this.secondWord = secondWord;%0A    %7D%0A%0A    public CommandWord getCommandWord() %7B%0A        return commandWord;%0A    %7D%0A%0A    public String getSecondWord() %7B%0A        return secondWord;%0A    %7D%0A%0A    public boolean isUnknown() %7B%0A        return (commandWord == CommandWord.UNKNOWN);%0A    %7D%0A
+/**%0A     * The command to execute%0A     */%0A    private CommandWord commandWord;%0A%0A    /**%0A     * The argument for the command%0A     */%0A    private String secondWord;%0A%0A    /**%0A     * Create a new instance of a command%0A     * @param  commandWord the command%0A     * @param  secondWord  the argument for the command%0A     * @return             a new instance of a Command%0A     */%0A    public Command(CommandWord commandWord, String secondWord) %7B%0A        this.commandWord = commandWord;%0A        this.secondWord = secondWord;%0A    %7D%0A%0A    /**%0A     * Getter for the commandWord%0A     * @return value of the commandWord attribute%0A     */%0A    public CommandWord getCommandWord() %7B%0A        return commandWord;%0A    %7D%0A%0A    /**%0A     * Getter for the secondWord%0A     * @return value of the secondWord attribute%0A     */%0A    public String getSecondWord() %7B%0A        return secondWord;%0A    %7D%0A%0A    /**%0A     * Check if the commandWord is unknown%0A     * @return true if commandWord is unknown%0A     */%0A    public boolean isUnknown() %7B%0A        return (commandWord == CommandWord.UNKNOWN);%0A    %7D%0A%0A    /**%0A     * Check if the command has a secondWord%0A     * @return true if secondWord is not equal to null%0A     */
 %0A   

Add javadoc to the Command class (#1)