src/main/java/seedu/address/logic/parser/parserAdd/AddCourseCommandParser.java
public AddCommand parse(String args) throws ParseException {
        ArgumentMultimap argMultimap =
                ArgumentTokenizer.tokenize(args, PREFIX_NAME, PREFIX_AMOUNT, PREFIX_TAG);

        if (!arePrefixesPresent(argMultimap, PREFIX_NAME, PREFIX_AMOUNT)
                || !argMultimap.getPreamble().isEmpty()) {
            throw new ParseException(
                    String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddCourseCommand.MESSAGE_USAGE));
        }

        Name name = ParserUtil.parseName(argMultimap.getValue(PREFIX_NAME).get());
        Amount amount = ParserUtil.parseAmount(argMultimap.getValue(PREFIX_AMOUNT).get());
        Set<Tag> tagList = ParserUtil.parseTags(argMultimap.getAllValues(PREFIX_TAG));

        Course course = new Course(name, amount, tagList);
        return new AddCourseCommand(course);
    }
/**
     * Parses the given {@code String} of arguments in the context of the AddCommand and returns an
     * AddCommand object for execution.
     *
     * @return
     * @throws ParseException if the user input does not conform the expected format
     */
Parses the given  String of arguments in the context of the AddCommand and returns an
AddCommand object for execution.

@return
@throws ParseException if the user input does not conform the expected format
Parses the given String of arguments in the context of the AddCommand and returns an AddCommand object for execution . @return @throws ParseException if the user input does not conform the expected format
public AddCommand parse(String args) throws ParseException {
        ArgumentMultimap argMultimap =
                ArgumentTokenizer.tokenize(args, PREFIX_NAME, PREFIX_AMOUNT, PREFIX_TAG);
        if (!arePrefixesPresent(argMultimap, PREFIX_NAME, PREFIX_AMOUNT)
                || !argMultimap.getPreamble().isEmpty()) {
            throw new ParseException(
                    String.format(MESSAGE_INVALID_COMMAND_FORMAT, AddCourseCommand.MESSAGE_USAGE));
        }
        Name name = ParserUtil.parseName(argMultimap.getValue(PREFIX_NAME).get());
        Amount amount = ParserUtil.parseAmount(argMultimap.getValue(PREFIX_AMOUNT).get());
        Set<Tag> tagList = ParserUtil.parseTags(argMultimap.getAllValues(PREFIX_TAG));
        Course course = new Course(name, amount, tagList);
        return new AddCourseCommand(course);
    }
public AddCommand parse ( String args ) throws ParseException { ArgumentMultimap argMultimap = ArgumentTokenizer . tokenize ( args , PREFIX_NAME , PREFIX_AMOUNT , PREFIX_TAG ) ; if ( ! arePrefixesPresent ( argMultimap , PREFIX_NAME , PREFIX_AMOUNT ) || ! argMultimap . getPreamble ( ) . isEmpty ( ) ) { throw new ParseException ( String . format ( MESSAGE_INVALID_COMMAND_FORMAT , AddCourseCommand . MESSAGE_USAGE ) ) ; } Name name = ParserUtil . parseName ( argMultimap . getValue ( PREFIX_NAME ) . get ( ) ) ; Amount amount = ParserUtil . parseAmount ( argMultimap . getValue ( PREFIX_AMOUNT ) . get ( ) ) ; Set < Tag > tagList = ParserUtil . parseTags ( argMultimap . getAllValues ( PREFIX_TAG ) ) ; Course course = new Course ( name , amount , tagList ) ; return new AddCourseCommand ( course ) ; }
Parses the given {@code String} of arguments in the context of the AddCommand and returns an
 AddCommand object for execution.
Parses the given { @code String } of arguments in the context of the AddCommand and returns an AddCommand object for execution .