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

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