src/main/java/seedu/address/logic/parser/ParserUtil.java
public static ID parseCourseid(String courseid) throws ParseException {
        requireNonNull(courseid);
        String trimmedCourseid = courseid.trim();
        if (!ID.isValidId(courseid)) {
            throw new ParseException(ID.MESSAGE_CONSTRAINTS);
        }
        return new ID(courseid);
    }
/**
     * Parses a {@code String courseid} into a {@code Courseid}. Leading and trailing whitespaces will be
     * trimmed.
     *
     * @throws ParseException if the given {@code courseid} is invalid.
     */
Parses a  String courseid into a  Courseid. Leading and trailing whitespaces will be
trimmed.

@throws ParseException if the given  courseid is invalid.
Parses a String courseid into a Courseid . Leading and trailing whitespaces will be trimmed . @throws ParseException if the given courseid is invalid .
public static ID parseCourseid(String courseid) throws ParseException {
        requireNonNull(courseid);
        String trimmedCourseid = courseid.trim();
        if (!ID.isValidId(courseid)) {
            throw new ParseException(ID.MESSAGE_CONSTRAINTS);
        }
        return new ID(courseid);
    }
public static ID parseCourseid ( String courseid ) throws ParseException { requireNonNull ( courseid ) ; String trimmedCourseid = courseid . trim ( ) ; if ( ! ID . isValidId ( courseid ) ) { throw new ParseException ( ID . MESSAGE_CONSTRAINTS ) ; } return new ID ( courseid ) ; }
Parses a {@code String courseid} into a {@code Courseid}.
Parses a { @code String courseid } into a { @code Courseid } .