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

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