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

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