src/main/java/seedu/address/logic/parser/ParserUtil.java
public static String parseId(String id) throws ParseException {
        String trimmedId = id.trim();
        // TODO: check if the ID is valid (there is applicant associated with the ID)
        if (!StringUtil.isNonZeroUnsignedInteger(trimmedId)) {
            throw new ParseException(MESSAGE_INVALID_ID);
        }
        return trimmedId;
    }
/**
     * Parses {@code String id} into an {@code Integer} and returns it. Leading and trailing whitespaces will be
     * trimmed.
     * @throws ParseException if the given {@code id} is invalid.
     */
Parses  String id into an  Integer and returns it. Leading and trailing whitespaces will be
trimmed.
@throws ParseException if the given  id is invalid.
Parses String id into an Integer and returns it . Leading and trailing whitespaces will be trimmed . @throws ParseException if the given id is invalid .
public static String parseId(String id) throws ParseException {
        String trimmedId = id.trim();
        if (!StringUtil.isNonZeroUnsignedInteger(trimmedId)) {
            throw new ParseException(MESSAGE_INVALID_ID);
        }
        return trimmedId;
    }
public static String parseId ( String id ) throws ParseException { String trimmedId = id . trim ( ) ; if ( ! StringUtil . isNonZeroUnsignedInteger ( trimmedId ) ) { throw new ParseException ( MESSAGE_INVALID_ID ) ; } return trimmedId ; }
Parses {@code String id} into an {@code Integer} and returns it.
Parses { @code String id } into an { @code Integer } and returns it .
// TODO: check if the ID is valid (there is applicant associated with the ID)