package seedu.ezdo.logic.parser;

import static seedu.ezdo.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;

import java.util.ArrayList;

import seedu.ezdo.logic.commands.Command;
import seedu.ezdo.logic.commands.IncorrectCommand;
import seedu.ezdo.logic.commands.KillCommand;
//@@author A0139248X
/**
 * Parses input arguments and creates a new KillCommand object
 */
public class KillCommandParser implements CommandParser {

    /**
     * Parses the given {@code String} of arguments in the context of the KillCommand
     * and returns a KillCommand object for execution.
     */
    @Override
    public Command parse(String args) {
        if (args.isEmpty()) {
            return new IncorrectCommand(String.format(MESSAGE_INVALID_COMMAND_FORMAT, KillCommand.MESSAGE_USAGE));
        }
        ArrayList<Integer> indexes = ParserUtil.parseIndexes(args);
        if (indexes.isEmpty()) {
            return new IncorrectCommand
                    (String.format(MESSAGE_INVALID_COMMAND_FORMAT, KillCommand.MESSAGE_USAGE));
        }
        return new KillCommand(indexes);
    }
}

@@ -426,16 +426,67 @@
 rser %7B%0A%0A
+    private static final String INDEX_ZERO = %220%22;%0A%0A
     /**%0A
@@ -684,24 +684,92 @@
 ing args) %7B%0A
+        final boolean isIndexZero = args.trim().equals(INDEX_ZERO);%0A
         if (
@@ -774,32 +774,47 @@
  (args.isEmpty()
+ %7C%7C isIndexZero
 ) %7B%0A            

Remove magic string